Exemple #1
0
 public void OnDisable()
 {
     if (this == instance)
     {
         instance = null;
     }
 }
Exemple #2
0
 public void OnEnable()
 {
     if (instance != null)
     {
         throw(new System.Exception("Error: Cannot create more than one instance of ToolUIAnchor!"));
     }
     instance = this;
 }