コード例 #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);
            }
        }
コード例 #2
0
 // Discard Singleton Reference
 void OnDestroy()
 {
     _Instance = null;
 }
コード例 #3
0
 void Awake()
 {
     _Instance = this;
 }