Esempio n. 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
    private void Awake()
    {
        if (rhytmEvent == null)
        {
            rhytmEvent = RhytmEvent.instance;
        }

        rhytmEvent.ONFrequancyChange += OnFrequancyChange;
    }
 void Awake()
 {
     if (rhytmEvent == null)
     {
         rhytmEvent = RhytmEvent.instance;
     }
     if (audioSource == null)
     {
         audioSource = GetComponent <AudioSource>();
     }
 }