Esempio n. 1
0
 private void Start()
 {
     if (CurrentData != null)
     {
         CurrentData.OnInit();
     }
     foreach (var state in _stateInstances)
     {
         state.Value.OnInit();
     }
     if (_defaultState != null)
     {
         SwitchState(_defaultState);
     }
 }