public void Awake() { signOutButton.onClick.AddListener(() => { SocialHandler.SignOutUser(); gameObject.SetActive(false); }); okayButton.onClick.AddListener(() => gameObject.SetActive(false)); cancelButton.onClick.AddListener(() => gameObject.SetActive(false)); signInButton.onClick.AddListener(() => { SocialHandler.SignInUser(); gameObject.SetActive(false); }); }
void Awake() { if(_instance == null) { _instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Awake() { socialHandler = new SocialHandler(); cloudHandler = new CloudHandler(); }