예제 #1
0
 //Funzione che viene continuamente eseguita ogni frame.
 private void Update()
 {
     //Invochiamo continuamente il DoState che restituisce lo stato su cui ci troviamo.
     currentState = currentState.DoState(this);
 }