/// <summary> /// Create the manager which creates and plays sound cues. Fails if it has already /// been created. /// </summary> public static void CreateAudioManager() { if (AudioManager == null) { AudioManager = new xAudio( "Content\\audio\\VTankAudio.xgs", "Content\\audio\\Wave Bank.xwb", "Content\\audio\\Sound Bank.xsb"); } else { throw new Exception("The audio manager has already been created."); } }
public xAdmob my_admob; //AdMobVNTIS controller #endregion void Awake() { my_audio = this.gameObject.GetComponent <xAudio>(); panel_localposition0 = panel.transform.localPosition; }