예제 #1
0
 private void OnDisable()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
예제 #2
0
 private void OnEnable()
 {
     if (instance != null)
     {
         Destroy(this);
         return;
     }
     else
     {
         instance = this;
     }
     attentionCallers.AddRange(
         FindObjectsOfType <AiAttentionCaller>()
         );
 }