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