Esempio n. 1
0
        private void OnLoginFirebaseSuccess(EnumLoginState state, SocialUser user)
        {
            text += $"\nLogin: {state}";
            if (state == EnumLoginState.Success)
            {
                loginFirebase.credentialUser = user;
                currentAuthenID = user.uid;
                currentGameId   = SaveManagerExample.GetMainID();

                text += $"\nInfo: {user.DebugString()}";
                buttonSyncData.SetActive(true);
            }
        }
Esempio n. 2
0
 // Discard Singleton Reference
 void OnDestroy()
 {
     _Instance = null;
 }
Esempio n. 3
0
 void Awake()
 {
     _Instance = this;
 }