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); } }
// Discard Singleton Reference void OnDestroy() { _Instance = null; }
void Awake() { _Instance = this; }