Exemple #1
0
    protected IEnumerator DelayTickChild(BevNode childNode, float delayTime = -1)
    {
        if (delayTime == -1)
        {
            delayTime = ownTree.TickTime;
        }
        yield return(new WaitForSeconds(delayTime));

        childNode.Tick();
    }
Exemple #2
0
 IEnumerator StartTree()
 {
     while (enabled)
     {
         if (isInit == true)
         {
             _CurNode.Tick();
             yield return(new WaitForSeconds(TickTime));
         }
         yield return(null);
     }
 }