Beispiel #1
0
 public static GlobalSheepState GetInstance()
 {
     if (instance == null)
     {
         instance = new GlobalSheepState();
     }
     return(instance);
 }
Beispiel #2
0
 private void Start()
 {
     stateMachine.SetCurrentState(WanderingSheepState.GetInstance());
     stateMachine.SetGlobalState(GlobalSheepState.GetInstance());
 }