void Awake()
 {
     if (s_instance)
         DestroyImmediate(gameObject);
     else
         s_instance = this;
 }
Esempio n. 2
0
 void Awake()
 {
     m_dialogueDisplay   = GameObject.Find("DialogDisplay").GetComponent <DialogDisplay>();
     m_usernameField     = GameObject.Find("UsernameBox").GetComponent <InputField>();
     m_passwordField     = GameObject.Find("PasswordBox").GetComponent <InputField>();
     m_loginBtn          = GameObject.Find("Login Button").GetComponent <Button>();
     m_forgotPasswordBtn = GameObject.Find("Forgot Password").GetComponent <Button>();
     m_savePassToggle    = GameObject.Find("Toggle").GetComponent <Toggle>();
     _bc = GameObject.Find("MainPlayer").GetComponent <BCConfig>().GetBrainCloud();
 }
Esempio n. 3
0
 void Awake()
 {
     if (s_instance)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         s_instance = this;
     }
 }
Esempio n. 4
0
 void Awake()
 {
     if (s_instance)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         s_instance = this;
         SceneManager.sceneLoaded += OnSceneLoaded;
     }
 }