Beispiel #1
0
 // Destoy same instance
 private void OnDestroy()
 {
     if (currentTempo == this)
     {
         currentTempo = null;
     }
 }
Beispiel #2
0
 // Set Current as only instance
 private void Awake()
 {
     currentTempo = this;
 }