private void Start() { soundMIDI = new TH_Audio.MIDISound("Assets\\MIDI\\SFX\\" + Sound.ToString() + ".mid"); GameAudioInterface.RegisterEmitter(this); if (AutoPlay) { PlaySound(); } }
private void Awake() { Instance = this; }