Beispiel #1
0
 private static ActionEngineInstance GetSceneInstance()
 {
     if (sceneInstance_ == null)
     {
         var go = new GameObject("[ActionEngineInstance]");
         sceneInstance_ = go.AddComponent <ActionEngineInstance>();
     }
     return(sceneInstance_);
 }
Beispiel #2
0
 private static ActionEngineInstance GetForeverInstance()
 {
     if (foreverInstance_ == null)
     {
         var go = new GameObject("[ActionEngineInstance.Forever]");
         GameObject.DontDestroyOnLoad(go);
         foreverInstance_ = go.AddComponent <ActionEngineInstance>();
     }
     return(foreverInstance_);
 }