Наследование: UnityEngine.MonoBehaviour, ISoundMaker
Пример #1
0
 // All kOS PartModules should actually share the single same instance of me:
 void Awake()
 {
     myself = this;
     sounds = new Dictionary<string, AudioSource>();
     DontDestroyOnLoad(gameObject);            
     
     LoadSound("beep", "file://"+ kspDirectory + "GameData/kOS/GFX/terminal-beep.wav");
     LoadSound("click", "file://"+ kspDirectory + "GameData/kOS/GFX/terminal-click.wav");
     LoadSound("error", "file://"+ kspDirectory + "GameData/kOS/GFX/error.wav");
 }
Пример #2
0
        // All kOS PartModules should actually share the single same instance of me:
        void Awake()
        {
            myself = this;
            sounds = new Dictionary <string, AudioSource>();
            DontDestroyOnLoad(gameObject);

            LoadSound("beep", "file://" + kspDirectory + "GameData/kOS/GFX/terminal-beep.wav");
            LoadSound("click", "file://" + kspDirectory + "GameData/kOS/GFX/terminal-click.wav");
            LoadSound("error", "file://" + kspDirectory + "GameData/kOS/GFX/error.wav");
        }