コード例 #1
0
        public static void AcceptFromInbox()
        {
            NetworkSessionManager.Instance.Reset();
            GoogleMultiplayer listener = new GoogleMultiplayer(NetworkSessionManager.Instance);

            PlayGamesPlatform.Instance.RealTime.AcceptFromInbox(listener);

            NetworkSessionManager.Instance.MatchmakingStarted();
        }
コード例 #2
0
        public static void AcceptInvitation(string invitationId)
        {
            NetworkSessionManager.Instance.Reset();
            GoogleMultiplayer listener = new GoogleMultiplayer(NetworkSessionManager.Instance);

            PlayGamesPlatform.Instance.RealTime.AcceptInvitation(invitationId, listener);

            NetworkSessionManager.Instance.MatchmakingStarted();
        }
コード例 #3
0
        public static void InviteToGame()
        {
            NetworkSessionManager.Instance.Reset();
            GoogleMultiplayer listener = new GoogleMultiplayer(NetworkSessionManager.Instance);

            PlayGamesPlatform.Instance.RealTime.CreateWithInvitationScreen(MinOpponents, MaxOpponents, GameVariant, listener);

            NetworkSessionManager.Instance.MatchmakingStarted();
        }