示例#1
0
    void SetUp()
    {
        var unit = CompornentUtility.FindCompornentOnScene <UnitSelector>().ActivUnit;

        unitBehaviour = new MoveBehaviour(unit);
        unitBehaviour.SetUp();
    }
示例#2
0
    void BehaviourSetUp()
    {
        TurnManager.Instance.NextTurn();
        var unit = CompornentUtility.FindCompornentOnScene <UnitSelector>().ActivUnit;

        if (unit.Army == PlayerInfo.Instance.team)
        {
            unitBehaviour = new MoveBehaviour(unit);
        }
        else
        {
        }
        unitBehaviour.SetUp();
    }