Ejemplo n.º 1
0
    private void GoToNextBehaviour()
    {
        currentBehaviour.Reset();
        currentBehaviourIndex = (currentBehaviourIndex + 1) % totalbehaviours;
        currentBehaviour      = behaviourLoop[currentBehaviourIndex];

        CheckBehaviourSkips();

        currentBehaviour.StartBehaviour();
    }
Ejemplo n.º 2
0
 private void OnWakeUp()
 {
     currentBehaviour.StartBehaviour();
 }