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; unitBehaviour = new MoveBehaviour(unit); //if (unitBehaviour!=null&&unitBehaviour.GetType() == typeof(MoveBehaviour)) //{ // unitBehaviour = new AttackBehaviour(unit); //} //else //{ // TurnManager.Instance.NextTurn(); // unitBehaviour = new MoveBehaviour(unit); //} unitBehaviour.SetUp(); }