void SetUp() { var unit = CompornentUtility.FindCompornentOnScene <UnitSelector>().ActivUnit; unitBehaviour = new MoveBehaviour(unit); unitBehaviour.SetUp(); }
void BehaviourSetUp() { TurnManager.Instance.NextTurn(); var unit = CompornentUtility.FindCompornentOnScene <UnitSelector>().ActivUnit; if (unit.Army == PlayerInfo.Instance.team) { unitBehaviour = new MoveBehaviour(unit); } else { } unitBehaviour.SetUp(); }