Example #1
0
 public void OnEnable()
 {
     if (instance != null)
     {
         Debug.LogWarning("Already found Erica in scene");
     }
     instance = this;
     SetDialogueText("");
 }
Example #2
0
 public void OnDisable()
 {
     if (instance == this)
     {
         instance = null;
     }
     else
     {
         Debug.LogWarning("Already found Erica in scene");
     }
 }