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