Inheritance: UnityEngine.MonoBehaviour
Exemple #1
0
 private static ConnectionIndicator GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType <ConnectionIndicator>();
     }
     return(singletonInstance);
 }
 // Use this for initialization
 void Start()
 {
     singletonInstance = this;
     if (ThinksyPlugin.IsInTestingMode())
     {
         warningImage.sprite = offlineSprite;
         //warningText.text = "Offline mode";
     }
 }
 // Use this for initialization
 void Start()
 {
     singletonInstance = this;
     if (ThinksyPlugin.IsInTestingMode())
     {
         warningImage.sprite = offlineSprite;
         //warningText.text = "Offline mode";
     }
 }
 private static ConnectionIndicator GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType<ConnectionIndicator>();
     }
     if (singletonInstance == null)
     {
         if (!warningThrown)
             Logger.BasicLog("There is no ConnectionIndicator enabled in scene.");
         warningThrown = true;
     }
     return singletonInstance;
 }
 private static ConnectionIndicator GetSingletonInstance()
 {
     if (singletonInstance == null)
     {
         singletonInstance = FindObjectOfType <ConnectionIndicator>();
     }
     if (singletonInstance == null)
     {
         if (!warningThrown)
         {
             Logger.BasicLog("There is no ConnectionIndicator enabled in scene.");
         }
         warningThrown = true;
     }
     return(singletonInstance);
 }