예제 #1
0
        void StartTrophy()
        {
            #if UNITY_PS4
            // Note that you only need to do this on one platform, for example either call RegisterCommsID in the Vita app so that it can
            // share the PS4 service or call RegisterServiceLabel on the PS4 app so that it can share the PS Vita service. For this
            // example we will setup the service label if building on PS4 to share the service that was created for the PS Vita.

            // For PS4 we register the service label for the trophy service that matches
            // the np Comms ID of the PS Vita version of the application.
            ErrorHandler(Main.RegisterServiceLabel(NpServiceType.Trophy, 0));
            #endif

            Trophies.RegisterTrophyPack();
        }
예제 #2
0
 public static void TrophiesRegister()
 {
     Trophies.RegisterTrophyPackRequest request = new Trophies.RegisterTrophyPackRequest();
     request.UserId = loggedInUser.userId;
     Trophies.RegisterTrophyPack(request, new Core.EmptyResponse());
 }