Ejemplo n.º 1
0
    /// <summary>
    /// The OnResult method fires when it recieves the answer from the server
    /// </summary>
    /// <param name="resultCode">Code</param>
    public void OnResult(int resultCode)

    {
        callbacksHandler = GameObject.Find("HMSManager").GetComponent <HMSCallbacksHandler>();

#if DEBUG
        Debug.Log("Saving players info callback");
#endif


        if (resultCode == 0)
        {
            callbacksHandler.OnSavePlayerSucccess();
        }
        else
        {
            callbacksHandler.OnSavePlayerError(resultCode);
        }
    }