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