Inheritance: MonoBehaviour
Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 private static ThinksyLink GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType<ThinksyLink>();
     }
     if (singletonInstance == null)
     {
         throw new Exception("There is no Thinksy Link");
     }
     return singletonInstance;
 }