public void SendPacket_AckMyPlayerState(int state,
                                            Vector3 pos,
                                            Vector3 forward)
    {
        Packet.CGAckPlayerState sendPacket = new Packet.CGAckPlayerState();
        sendPacket.uniqueConnID = GlobalSetting.Instance.UniqueConnID;
        sendPacket.state        = state;
        sendPacket.posX         = pos.x.ToString();
        sendPacket.posY         = pos.y.ToString();
        sendPacket.posZ         = pos.z.ToString();
        sendPacket.dirX         = forward.x.ToString();
        sendPacket.dirY         = forward.y.ToString();
        sendPacket.dirZ         = forward.z.ToString();
        sendPacket.speed        = "5";

        Send(sendPacket);
    }
Exemple #2
0
    public void SendPacket_AckMyPlayerState(int state,
        Vector3 pos,
        Vector3 forward)
    {
        Packet.CGAckPlayerState sendPacket = new Packet.CGAckPlayerState();
        sendPacket.uniqueConnID = GlobalSetting.Instance.UniqueConnID;
        sendPacket.state = state;
        sendPacket.posX = pos.x.ToString();
        sendPacket.posY = pos.y.ToString();
        sendPacket.posZ = pos.z.ToString();
        sendPacket.dirX = forward.x.ToString();
        sendPacket.dirY = forward.y.ToString();
        sendPacket.dirZ = forward.z.ToString();
        sendPacket.speed = "5";

        Send(sendPacket);
    }