private void OnConnectionResult(CEvent e)
    {
        GooglePlayConnectionResult result = e.data as GooglePlayConnectionResult;

        SA_StatusBar.text = "ConnectionResul:  " + result.code.ToString();
        Debug.Log(result.code.ToString());
    }
Exemple #2
0
    private void OnConnectionResult(string data)
    {
        string[] res;
        res = data.Split(AndroidNative.DATA_SPLITTER [0]);
        GooglePlayConnectionResult result = new GooglePlayConnectionResult();

        result.code = (GP_ConnectionResultCode)System.Convert.ToInt32(res[0]);



        if (System.Convert.ToInt32(res[1]) == 1)
        {
            result.HasResolution = true;
        }
        else
        {
            result.HasResolution = false;
        }


        if (result.IsSuccess)
        {
            OnStateChange(GPConnectionState.STATE_CONNECTED);
        }
        else
        {
            if (!result.HasResolution)
            {
                OnStateChange(GPConnectionState.STATE_DISCONNECTED);
            }
        }

        ActionConnectionResultReceived(result);
        dispatch(CONNECTION_RESULT_RECEIVED, result);
    }
    private void ActionConnectionResultReceived(GooglePlayConnectionResult result)
    {
                #if UNITY_ANDROID
        GooglePlayConnection.ActionConnectionResultReceived -= ActionConnectionResultReceived;

        // Check for locked achievements with all progress completed
        GameManager.Instance.CheckAchievements();

        if (result.IsSuccess)
        {
            if (needLeaderboard)
            {
                needLeaderboard = false;
                GooglePlayManager.Instance.ShowLeaderBoardById(ProjectManager.leaderboardId);
            }
        }
        else
        {
            AndroidMessage.Create(ProjectManager.playServicesTitle, ProjectManager.playServicesError);
        }
                #endif

                #if DEBUG_INFO
        if (result.IsSuccess)
        {
            Debug.Log("AndroidManager: connected to Google Play Services successfully");
        }
        else
        {
            Debug.Log("AndroidManager: failed to connect to Google Play Services with error: " + result.code.ToString());
        }
                #endif
    }
Exemple #4
0
 void OnConnectionResult(GooglePlayConnectionResult result)
 {
     Debug.Log(result.code.ToString());
     if (isDebugLog)
     {
         Debug.Log("GooglePlayへのコネクト完了!: " + userName_string);
     }
     PS_Plugin.Instance.OnGpgInitComplete(result.IsSuccess);
 }
 private void ActionConnectionResultReceived(GooglePlayConnectionResult result)
 {
     if (result.IsSuccess)
     {
         Debug.Log("Connected!");
     }
     else
     {
         Debug.Log("Cnnection failed with code: " + result.code.ToString());
     }
     SA_StatusBar.text = "ConnectionResul:  " + result.code.ToString();
 }
Exemple #6
0
 /// <summary>
 /// Get the connection results from google
 /// </summary>
 /// <param name="result">Result.</param>
 private void ActionConnectionResultReceived(GooglePlayConnectionResult result)
 {
     if (result.IsSuccess)
     {
         SA_StatusBar.text = "We connected";
         UserID            = GooglePlayManager.Instance.player.playerId;
     }
     else
     {
         SA_StatusBar.text = "Connection failed with code: " + result.code.ToString();
     }
 }
    private void ActionConnectionResultReceived(GooglePlayConnectionResult result)
    {
        if(result.IsSuccess)
        {
            GooglePlayManager.ActionAchievementsLoaded +=  OnAchievmentsLoaded;
            GooglePlayManager.ActionLeaderboardsLoaded += OnLeaderBoardsLoaded;
            GooglePlayManager.instance.LoadLeaderBoards ();
            GooglePlayManager.instance.LoadAchievements();
        }
        else
        {

        }
    }
 private void ActionConnectionResultReceived(GooglePlayConnectionResult result)
 {
     if (result.IsSuccess)
     {
         Debug.Log("Connected!");
         Debug.Log("ID IS " + GooglePlayManager.Instance.player.playerId);
         Debug.Log("Name is " + GooglePlayManager.Instance.player.name);
         myID = GooglePlayManager.Instance.player.playerId;
         Common.playerInformation.myID = myID;
     }
     else
     {
         Debug.Log("Cnnection failed with code: " + result.code.ToString());
     }
 }
    private void OnConnectionResult(string resultCode)
    {
        Debug.Log("[OnConnectionResult] resultCode " + resultCode);
        GooglePlayConnectionResult result = new GooglePlayConnectionResult();

        result.code = (GP_ConnectionResultCode)System.Convert.ToInt32(resultCode);


        if (result.IsSuccess)
        {
            OnStateChange(GPConnectionState.STATE_CONNECTED);
        }
        else
        {
            OnStateChange(GPConnectionState.STATE_DISCONNECTED);
        }

        ActionConnectionResultReceived(result);
    }
	private void OnConnectionResult(GooglePlayConnectionResult result) 
	{
		SA_StatusBar.text = "ConnectionResul:  " + result.code.ToString();
		Debug.Log(result.code.ToString());
	}
 private void OnConnectionResult(GooglePlayConnectionResult result)
 {
     SA_StatusBar.text = "ConnectionResul:  " + result.code.ToString();
     Debug.Log(result.code.ToString());
 }
	private void ActionConnectionResultReceived(GooglePlayConnectionResult result) {

		if(result.IsSuccess) {
			Debug.Log("Connected!");
		} else {
			Debug.Log("Cnnection failed with code: " + result.code.ToString());
		}
		SA_StatusBar.text = "ConnectionResul:  " + result.code.ToString();
	}
 private void OnConnectionResult(GooglePlayConnectionResult result)
 {
     Debug.Log("ConnectionResult: " + result.code.ToString());
 }
Exemple #14
0
	private void OnConnectionResult(GooglePlayConnectionResult result) {
		
	}
 private void ActionConnectionResultReceived(GooglePlayConnectionResult obj)
 {
     throw new NotImplementedException();
 }