예제 #1
0
    public void Deserialize(INetBuffer reader)
    {
        Tick = reader.GetInt();
        int playerStateCount = reader.GetInt();

        PlayerStates = new PlayerState[playerStateCount];
        PlayerState playerState = new PlayerState();

        for (int i = 0; i < playerStateCount; i++)
        {
            playerState.Deserialize(reader);
            PlayerStates[i] = playerState;
        }
    }
예제 #2
0
 public void Deserialize(INetBuffer reader)
 {
     PlayerId = reader.GetInt();
     Position = reader.GetVector3(true);
     Rotation = reader.GetQuaternion(true);
 }