Ejemplo n.º 1
0
    void OnDestroy()
    {
        // if (RankingManager.InstanceExists())
        //   RankingManager.Instance.OnRegisterScoreError -= CheckErrors;

        if (SonyUserManager.InstanceExists())
        {
            // SonyUserManager.Instance.onSignedOut -= CheckErrors;
            //  SonyUserManager.Instance.onSignInError -= CheckErrors;
            SonyUserManager.Instance.onSignedIn -= OnSignedIn;
        }

        if (SonyManager.InstanceExists())
        {
            //  SonyManager.Instance.onConnectionDown -= CheckErrors;
            SonyManager.Instance.onConnectionUp -= OnConnectionUp;
        }
    }
Ejemplo n.º 2
0
    void OnDestroy()
    {
        if (RankingManager.InstanceExists())
        {
            RankingManager.Instance.OnOwnFriendsRankObtanied -= OnScoresObtained;
            RankingManager.Instance.OnOwnGlobalRankObtanied  -= OnScoresObtained;
            RankingManager.Instance.OnOwnRankObtanied        -= OnPlayerScoreObtained;
            //  RankingManager.Instance.OnError -= OnScoresFailed;
        }

        if (SonyUserManager.InstanceExists())
        {
            //      SonyUserManager.Instance.onSignedOut -= OnError;
            //       SonyUserManager.Instance.onSignInError -= OnError;
        }

        if (SonyManager.InstanceExists())
        {
            // SonyManager.Instance.onConnectionDown -= OnError;
        }
    }