protected IEnumerator DelayTickChild(BevNode childNode, float delayTime = -1) { if (delayTime == -1) { delayTime = ownTree.TickTime; } yield return(new WaitForSeconds(delayTime)); childNode.Tick(); }
IEnumerator StartTree() { while (enabled) { if (isInit == true) { _CurNode.Tick(); yield return(new WaitForSeconds(TickTime)); } yield return(null); } }