Inheritance: MonoBehaviour
Example #1
0
 static private ThinksyLink GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType <ThinksyLink>();
     }
     if (singletonInstance == null)
     {
         throw new Exception("There is no Thinksy Link");
     }
     return(singletonInstance);
 }
 private static ThinksyLink GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType<ThinksyLink>();
     }
     if (singletonInstance == null)
     {
         throw new Exception("There is no Thinksy Link");
     }
     return singletonInstance;
 }