示例#1
0
    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());
        }
    }
示例#2
0
 public void SetSilentState(States.State _state)
 {
     RKLog.Log("SetSilentState " + _currentState, "statemanager");
     _currentState = _state;
 }
示例#3
0
 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);
 }
示例#5
0
 private void Preloaded(States.State name, Action callback)
 {
     Debug.LogError("Preloading done! Supervet!");
     callback();
 }