41 lines
830 B
C#
41 lines
830 B
C#
using Gameplay.Unit;
|
|
using TGS;
|
|
using UnityEngine;
|
|
|
|
namespace Gameplay.Level
|
|
{
|
|
public class EndState : LevelBaseState
|
|
{
|
|
protected override void _OnEnter()
|
|
{
|
|
_level.SetPause(true);
|
|
DebugUtil.Log("Level End");
|
|
}
|
|
|
|
protected override void _OnUpdate(float deltaTime)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
protected override void _OnExit()
|
|
{
|
|
// 在这里释放所有单位
|
|
GameUnitManager.instance.Dispose();
|
|
}
|
|
|
|
protected override void _OnCellClick(TerrainGridSystem tgs, int cellIndex, int buttonIndex)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void _OnClick(Vector2 screenPosition)
|
|
{
|
|
|
|
}
|
|
|
|
public EndState(Level level) : base(level)
|
|
{
|
|
}
|
|
}
|
|
} |