void Awake() { if (s_instance) DestroyImmediate(gameObject); else s_instance = this; }
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(); }
void Awake() { if (s_instance) { DestroyImmediate(gameObject); } else { s_instance = this; } }
void Awake() { if (s_instance) { DestroyImmediate(gameObject); } else { s_instance = this; SceneManager.sceneLoaded += OnSceneLoaded; } }