private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Beispiel #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>();
     }
 }