public AudioConnection(BaseControl start, BaseControl end, AudioTransition transition) : base(start, end) { this.Transition = transition; WantsMouseEvents = true; this.ContextMenu = AudioConnectionContextMenu.Instance; }
void Awake() { if (AudioT == null) { audio.Play(); DontDestroyOnLoad(gameObject); AudioT = this; } else { Destroy(gameObject); } }
private void Awake() { // We only want one instance of the music to be playing and saved between scenes to allow for continuity between changes. if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }