コード例 #1
0
 void Awake()
 {
     if (standalone != null)
     {
         Debug.LogError("StandAlone is called twice");
     }
     standalone = this;
 }
コード例 #2
0
    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
    }
コード例 #3
0
 private void OnDestroy()
 {
     standalone = null;
 }