示例#1
0
 public void SetUserInfo(UserInfo info)
 {
     userInfo = info;
     ClientInRoom.players.Add(info.id, this);
     if (avatar == null)
     {
         avatar = GetComponent <PlayerAvatar>();
     }
     avatar.SetUserInfo(userInfo);
 }