示例#1
0
    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>();
        }
    }
示例#2
0
    public override void Enter()
    {
        base.Enter();

        RoundController.Select(null);
    }