Exemplo n.º 1
0
    public virtual bool CanAttack(int index = 0)
    {
        PEActionParamVVNN param = PEActionParamVVNN.param;

        param.vec1 = m_MotionMgr.transform.position;
        param.vec2 = m_MotionMgr.transform.forward;
        param.n1   = 0;
        param.n2   = index;
        return(m_MotionMgr.CanDoAction(PEActionType.SwordAttack, param));
    }
Exemplo n.º 2
0
    private void RPC_SKDAVVNN(uLink.BitStream stream, uLink.NetworkMessageInfo info)
    {
        PEActionType      proType = stream.Read <PEActionType> ();
        PEActionParamVVNN param   = PEActionParamVVNN.param;

        param.vec1 = stream.Read <Vector3> ();
        param.vec2 = stream.Read <Vector3> ();
        param.n1   = stream.Read <int> ();
        param.n2   = stream.Read <int> ();

        if (MtCmpt != null)
        {
            MtCmpt.DoActionImmediately((PEActionType)proType, param);
        }
    }
Exemplo n.º 3
0
    private void SendSKDATwoHandSwordAttack(PEActionType type, PEActionParam obj)
    {
        PEActionParamVVNN param = obj as PEActionParamVVNN;

        RPCServer(EPacketType.PT_InGame_SKDAVVNN, type, param.vec1, param.vec2, param.n1, param.n2);
    }