You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
577 B
23 lines
577 B
using AX.Network.Protocols; |
|
using AX.NetworkSystem; |
|
using AX.Serialization; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.SceneManagement; |
|
|
|
public class LOBBY_ENTER_SYNC : NetworkMessageBehaviour |
|
{ |
|
protected override void Execute(BinaryMessage message) |
|
{ |
|
var user = message.Body.Deserialize<UserData>(); |
|
if (user.UserInfo.Id == CurrentUserInfo.mySelf.Id) |
|
{ |
|
SceneManager.LoadScene("Lobby"); |
|
} |
|
else |
|
{ |
|
Lobby.userList.Add(user); |
|
} |
|
} |
|
}
|
|
|