protected override void OnTouch(object sender, InfoEventArgs <Point> e) { Tile tile = Board.GetTile(e.info); if (tile.content == null) { return; } Unit unit = tile.content.GetComponent <Unit>(); if (unit && unit.turn.IsAvailable() && RoundController.RoundSide == unit.alliance) { RangeManager.GetRanges(unit); RoundController.Select(unit); owner.ChangeState <SelectActionState>(); } }
public override void Enter() { base.Enter(); RoundController.Select(null); }