void Awake()
 {
     if (instance == null)
     {
         DontDestroyOnLoad(transform.gameObject);
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 public static void ShowWindow()
 {
     LevelEditorMenu editor = (LevelEditorMenu)EditorWindow.GetWindow(typeof(LevelEditorMenu));
 }
Esempio n. 3
0
 public void SetLevelEditorMenu(LevelEditorMenu menu)
 {
     this.menu = menu;
 }