Exemplo n.º 1
0
    public void SetTabMoveInfoForMobile(bool bStart, eCharAnimationType anitype)
    {
        NrCharUser    nrCharUser    = this.m_pkChar as NrCharUser;
        Nr3DCharActor nr3DCharActor = nrCharUser.Get3DChar() as Nr3DCharActor;

        if (nr3DCharActor == null)
        {
            return;
        }
        if (bStart)
        {
            this.ProcessIncreaseMove();
            this.SetCharPos(nr3DCharActor.GetRootGameObject());
            this.SendCharMovePacketForKeyBoardMove(false);
            this.m_bArrived      = false;
            this.m_bKeyboardMove = false;
            this.m_bMouseMove    = false;
            this.m_bJoyStickMove = true;
        }
        else
        {
            this.MoveStop(false, false);
        }
        nrCharUser.SetAnimation(anitype);
    }