public void SignIn(Action <bool> SignInResult = null)
 {
     if (!this.isInitialized)
     {
         return;
     }
     NpSingleton <NpGameService> .Instance.SignedIn(NpGameServiceAndroid.CLIENT_TYPE.CLIENT_SNAPSHOT, delegate
     {
         PlayerPrefs.SetInt("GooglePlaySignState", 1);
         this.signState = GooglePlayGamesTool.SignState.In;
         if (SignInResult != null)
         {
             SignInResult(true);
         }
     }, delegate(string errorText)
     {
         global::Debug.LogWarning("NpGameService.Instance.SignedIn failed : " + errorText);
         PlayerPrefs.SetInt("GooglePlaySignState", 0);
         this.signState = GooglePlayGamesTool.SignState.Out;
         if (SignInResult != null)
         {
             SignInResult(false);
         }
     });
 }
 public void Initialize(Action <bool> SignInResult)
 {
     this.signState     = (GooglePlayGamesTool.SignState)PlayerPrefs.GetInt("GooglePlaySignState", -1);
     this.isInitialized = true;
     if (this.signState != GooglePlayGamesTool.SignState.Out)
     {
         this.SignIn(SignInResult);
     }
 }
    public void SignOut()
    {
        if (!this.isInitialized)
        {
            return;
        }
        NpSingleton <NpGameService> .Instance.SignOut();

        PlayerPrefs.SetInt("GooglePlaySignState", 0);
        this.signState = GooglePlayGamesTool.SignState.Out;
    }