public GameObject GetGameObject(States.State name) { if (scenes.ContainsKey(name)) { if (scenes[name].loaded == false && scenes[name].loading == false) { LoadScene(name); } // await checkSceneLoaded(); return(scenes[name].gameobject); } else { Debug.LogError("get gameobject " + name + " does not exist!"); return(new GameObject()); } }
public void SetSilentState(States.State _state) { RKLog.Log("SetSilentState " + _currentState, "statemanager"); _currentState = _state; }
private void StateChanged(States.State state) { RKLog.Log("state changed to " + state.ToString()); }
public float GetSpeed(States.State fromState, States.State toState) { return(0.3f); }
private void Preloaded(States.State name, Action callback) { Debug.LogError("Preloading done! Supervet!"); callback(); }