//--------------------------------------
    // Native Events
    //--------------------------------------


    private void OnInvitationDialogComplete(string InvitationIds)
    {
        string[] invites = AndroidNative.StringToArray(InvitationIds);
        GP_SendAppInvitesResult result = new GP_SendAppInvitesResult(invites);

        ActionAppInvitesSent(result);
    }
	void HandleActionAppInvitesSent (GP_SendAppInvitesResult res) {
		if(res.IsSucceeded) {
			Debug.Log("Invitation was sent to " + res.InvitationIds.Length + " people");
		} else {
			Debug.Log("App invite failed" + res.Message);
		}

		GP_AppInvitesController.ActionAppInvitesSent -= HandleActionAppInvitesSent;
	}
    void HandleActionAppInvitesSent(GP_SendAppInvitesResult res)
    {
        if (res.IsSucceeded)
        {
            Debug.Log("Invitation was sent to " + res.InvitationIds.Length + " people");
        }
        else
        {
            Debug.Log("App invite failed" + res.Message);
        }

        GP_AppInvitesController.ActionAppInvitesSent -= HandleActionAppInvitesSent;
    }
    private void OnInvitationDialogFailed(string erroCode)
    {
        GP_SendAppInvitesResult result = new GP_SendAppInvitesResult(erroCode);

        ActionAppInvitesSent(result);
    }