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