예제 #1
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;
        }
    }