/// <summary>
 /// Callback when GameCircle is initialized and ready to use.
 /// </summary>
 private void ServiceReadyHandler()
 {
     initializationStatus = EInitializationStatus.Ready;
     gameCircleInitializationStatusLabel = pluginInitializedLabel;
     // Once the callback is received, these events do not need to be subscribed to.
     UnsubscribeFromGameCircleInitializationEvents();
     // Tell the GameCircle plugin the popup information set here.
     // Calling this after GameCircle initialization is safest.
     AGSClient.SetPopUpEnabled(enablePopups);
     AGSClient.SetPopUpLocation(toastLocation);
 }
Exemplo n.º 2
0
    /// <summary>
    /// Callback when GameCircle is initialized and ready to use.
    /// </summary>
    private void ServiceReadyHandler()
    {
        initializationStatus = EInitializationStatus.Ready;
        Debug.Log("Dentro ServiceREadyHandler");
        if (AGSPlayerClient.IsSignedIn())
        {
            if (player == null)
            {
                Debug.Log("Dentro service, Request achievements");
                WhisperPlayerScores.Instance.SynchronizeScores();
                RequestLocalPlayerData();
            }
        }


        // Once the callback is received, these events do not need to be subscribed to.
        UnsubscribeFromGameCircleInitializationEvents();


        // Tell the GameCircle plugin the popup information set here.
        // Calling this after GameCircle initialization is safest.
        AGSClient.SetPopUpEnabled(enablePopups);
        AGSClient.SetPopUpLocation(toastLocation);
    }