// Update is called once per frame private void Update() { if (unitBehaviour.Update()) { unitBehaviour.End(); CompornentUtility.FindCompornentOnScene <TurnManager>().NextTurn(); UnitSetUp(); } }
// Update is called once per frame IEnumerator BehaviourRoutine() { while (unitBehaviour == null) { yield return(null); } while (true) { if (unitBehaviour.Update()) { unitBehaviour.End(); BehaviourSetUp(); } yield return(null); } }