コード例 #1
0
ファイル: OnRecvPlayerJump.cs プロジェクト: reblGreen/MMORPG
        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);
        }
コード例 #2
0
ファイル: OnRecvJump.cs プロジェクト: reblGreen/MMORPG
        private void OnRecvJump(IChannel channel, Message message)
        {
            SJump         msg  = message as SJump;
            NetworkEntity self = networkEntities[msg.ID];

            if (self.behavior == null)
            {
                return;
            }

            self.behavior.Jump();
        }
コード例 #3
0
        private void OnRecvJump(IChannel channel, Message message)
        {
            SJump         msg  = message as SJump;
            NetworkEntity self = networkEntities[msg.ID];

            if (self.behavior == null)
            {
                return;
            }

            self.behavior.Jump();
            //GameObject.FindObjectOfType<BroadcastTextUI>().AddNewMessage("jump");
        }