Exemple #1
0
 void OnDisable()
 {
     if (Application.isPlaying)
     {
         UIDirector.Remove(this);
     }
 }
Exemple #2
0
 void OnEnable()
 {
     if (Application.isPlaying)
     {
         UIDirector.Add(this);
         if (interactivityChangedByOneShot)
         {
             interactivityChangedByOneShot = false;
             Bt.interactable = true;
         }
     }
 }