private void moveOtherPlayer(NetworkPacket.OtherPlayer otherPlayer)
    {
        NetworkPacket.Vec2 pos = otherPlayer.Pos.Value;

        if (global.playingAsHost)
        {
            player2.SetTransform(new Transform2D(0, new Vector2(pos.X, pos.Y)));
        }
        else
        {
            player1.SetTransform(new Transform2D(0, new Vector2(pos.X, pos.Y)));
        }
    }
Ejemplo n.º 2
0
 public static OtherPlayer GetRootAsOtherPlayer(ByteBuffer _bb, OtherPlayer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }