Beispiel #1
0
    public void Load(bool forceReload = false)
    {
        if (AudioRoot == null || BankLinkRoot == null || BusRoot == null || EventRoot == null || forceReload)
        {
            Component[] audioData;
            Component[] eventData;
            Component[] busData;
            Component[] bankLinkData;

            SaveAndLoad.LoadManagerData(out audioData, out eventData, out busData, out bankLinkData);
            BusRoot      = CheckData <InAudioBus>(busData);
            AudioRoot    = CheckData <InAudioNode>(audioData);
            EventRoot    = CheckData <InAudioEventNode>(eventData);
            BankLinkTree = CheckData <InAudioBankLink>(bankLinkData);

            /*if (BusRoot != null)
             *  BusRootGO = BusRoot.gameObject;
             * if (AudioRoot != null)
             *  AudioRootGO = AudioRoot.gameObject;
             * if (EventRoot != null)
             *  EventRootGO = EventRoot.gameObject;
             * if (BankLinkTree != null)
             *  BankLinkRootGO = BankLinkTree.gameObject;*/
        }
    }
        public void Load(bool forceReload = false)
        {
            if (AudioRoot == null || BankLinkRoot == null || EventRoot == null || MusicRoot == null || forceReload)
            {
                Component[] audioData;
                Component[] eventData;
                Component[] bankLinkData;
                Component[] musicData;

                SaveAndLoad.LoadManagerData(out audioData, out eventData, out musicData, out bankLinkData);
                AudioRoot    = CheckData <InAudioNode>(audioData);
                EventRoot    = CheckData <InAudioEventNode>(eventData);
                BankLinkTree = CheckData <InAudioBankLink>(bankLinkData);
                MusicTree    = CheckData <InMusicNode>(musicData);
            }
        }
 private T LoadData <T>(string location) where T : Object, InITreeNode <T>
 {
     return(CheckData <T>(SaveAndLoad.LoadManagerData(location)));
 }