Пример #1
0
 private void OnDisable()
 {
     playerActions.Destroy();
 }
Пример #2
0
 void OnDisable()
 {
     // This properly disposes of the action set and unsubscribes it from
     // update events so that it doesn't do additional processing unnecessarily.
     playerActions.Destroy();
 }