Beispiel #1
0
 private void Update()
 {
     if (!finishedFollowing)
     {
         if (timer.GetStatus() == Timer.Status.FINISHED)
         {
             finishedFollowing = true;
         }
     }
     else
     {
         if (parentHasStateMachine)
         {
             stateMachine.ReportFinishedState();
         }
         if (destroyOnFinish)
         {
             Destroy(this);
         }
     }
 }