Beispiel #1
0
 public AudioConnection(BaseControl start, BaseControl end, AudioTransition transition)
     : base(start, end)
 {
     this.Transition  = transition;
     WantsMouseEvents = true;
     this.ContextMenu = AudioConnectionContextMenu.Instance;
 }
Beispiel #2
0
 void Awake()
 {
     if (AudioT == null)
     {
         audio.Play();
         DontDestroyOnLoad(gameObject);
         AudioT = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Beispiel #3
0
    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);
        }
    }