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); });
 }
Example #2
0
 void Awake()
 {
     if(_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Example #3
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Example #4
0
 void Awake()
 {
     socialHandler = new SocialHandler();
     cloudHandler  = new CloudHandler();
 }