示例#1
0
    /// <summary>
    ///  callback method for native code to communicate events back to unity
    /// </summary>
    public static void PlayerFailed(string json)
    {
        AGSRequestPlayerResponse response = AGSRequestPlayerResponse.FromJSON(json);

        if (response.IsError() && PlayerFailedEvent != null)
        {
            PlayerFailedEvent(response.error);
        }
        if (RequestLocalPlayerCompleted != null)
        {
            RequestLocalPlayerCompleted(response);
        }
    }