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