void Awake() { if (standalone != null) { Debug.LogError("StandAlone is called twice"); } standalone = this; }
public void CreateNewTabs(string newFilename) { TabsMenuManager inst = TabsMenuManager.standalone; if (inst == null) { return; } inst.OpenMenu("EditorTrack"); m_CurrentTrackFile = Instantiate(sampleTrackFile); m_CurrentTrackFile.Initialize(newFilename); SaveCurrentTrack(); //setup tracks }
private void OnDestroy() { standalone = null; }