public void Login()
 {
                 #if UNITY_ANDROID
     if (!PlayGameServices.isSignedIn())
     {
         ZedLogger.Log("trying to authenticate local player");
         PlayGameServices.authenticate();
     }
                 #endif
 }
 protected override void Setup(APIWrapperSettings settings)
 {
                 #if UNITY_ANDROID
     if (!PlayGameServices.isSignedIn() && !PlayerDataManager.Instance.GameCenterLoginRequested)
     {
         ZedLogger.Log("trying to authenticate local player (silently)");
         PlayGameServices.attemptSilentAuthentication();
     }
                 #endif
 }
예제 #3
0
 public virtual void ShowPreviousScene()
 {
     if (_previousScene != null)
     {
         ShowScene(_previousScene);
     }
     else
     {
         ZedLogger.Log("No previous scene is set, switching to default screen instead.");
         ShowDefaultScene();
     }
 }