public void SendJumpingAction() { CPlayerJump action = new CPlayerJump(); action.player = m_entity.entityId; MyNetwork.Send(action); }
private void OnRecvPlayerJump(IChannel channel, Message message) { CPlayerJump request = message as CPlayerJump; Player player = (Player)World.Instance.GetEntity(request.player); SJump response = new SJump(); response.ID = request.player; player.Broadcast(response); }