コード例 #1
0
    public bool Initialize(StageObject stgObj, AnimEventData.EventData data, AttackInfo atkInfo)
    {
        //IL_007f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0084: Expected O, but got Unknown
        //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
        //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c1: Expected O, but got Unknown
        //IL_0151: Unknown result type (might be due to invalid IL or missing references)
        //IL_0153: Unknown result type (might be due to invalid IL or missing references)
        if (data.id != AnimEventFormat.ID.ATK_COLLIDER_CAPSULE && data.id != AnimEventFormat.ID.ATK_COLLIDER_CAPSULE_START && data.id != AnimEventFormat.ID.ATK_COLLIDER_CAPSULE_DEPEND_VALUE && data.id != AnimEventFormat.ID.CONTINUS_ATTACK)
        {
            return(false);
        }
        if (object.ReferenceEquals(stgObj, null))
        {
            return(false);
        }
        Player player = stgObj as Player;
        int    layer  = 13;
        float  num    = 1f;

        if (!object.ReferenceEquals(player, null))
        {
            layer = 12;
            num   = player.GetRadiusCustomRate();
        }
        if (gameObject == null)
        {
            gameObject = new GameObject();
            gameObject.set_name("AnimEventCollider");
            gameObject.set_layer(layer);
            colliderHiter = gameObject.AddComponent <AtkColliderHiter>();
        }
        Transform parent = stgObj.get_gameObject().get_transform();

        if (!string.IsNullOrEmpty(data.stringArgs[1]))
        {
            Transform val = stgObj.FindNode(data.stringArgs[1]);
            if (val != null)
            {
                parent = val;
            }
        }
        Vector3 pos = default(Vector3);

        pos._002Ector(data.floatArgs[0], data.floatArgs[1], data.floatArgs[2]);
        Vector3 rot = default(Vector3);

        rot._002Ector(data.floatArgs[3], data.floatArgs[4], data.floatArgs[5]);
        float radius = data.floatArgs[6] * num;
        float height = data.floatArgs[7];

        colliderHiter.SetColliderInfo(stgObj, parent, atkInfo, pos, rot, radius, height);
        return(true);
    }
コード例 #2
0
    public static AnimEventShot Create(StageObject stage_object, AnimEventData.EventData data, AttackInfo atk_info, Vector3 offset)
    {
        //IL_0023: Unknown result type (might be due to invalid IL or missing references)
        //IL_0034: Unknown result type (might be due to invalid IL or missing references)
        //IL_005d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0062: Unknown result type (might be due to invalid IL or missing references)
        //IL_0063: Unknown result type (might be due to invalid IL or missing references)
        //IL_0068: Unknown result type (might be due to invalid IL or missing references)
        //IL_006a: Unknown result type (might be due to invalid IL or missing references)
        //IL_006f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0072: Unknown result type (might be due to invalid IL or missing references)
        //IL_0073: Unknown result type (might be due to invalid IL or missing references)
        //IL_0078: Unknown result type (might be due to invalid IL or missing references)
        //IL_0091: Unknown result type (might be due to invalid IL or missing references)
        //IL_0096: Unknown result type (might be due to invalid IL or missing references)
        //IL_009b: Unknown result type (might be due to invalid IL or missing references)
        //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
        //IL_00af: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
        //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
        //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
        //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d4: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d5: Unknown result type (might be due to invalid IL or missing references)
        Transform val = stage_object.FindNode(data.stringArgs[1]);

        if (val == null)
        {
            val = stage_object._transform;
        }
        if (val.get_gameObject() != null && !val.get_gameObject().get_activeInHierarchy())
        {
            return(null);
        }
        Vector3   val2 = new Vector3(data.floatArgs[0], data.floatArgs[1], data.floatArgs[2]) + offset;
        Matrix4x4 localToWorldMatrix = val.get_localToWorldMatrix();

        val2 = localToWorldMatrix.MultiplyPoint3x4(val2);
        Quaternion val3 = Quaternion.Euler(new Vector3(data.floatArgs[3], data.floatArgs[4], data.floatArgs[5]));

        val3 = ((data.intArgs[0] != 0) ? (stage_object.get_gameObject().get_transform().get_rotation() * val3) : (val.get_rotation() * val3));
        return(Create(stage_object, atk_info, val2, val3, null, true, null, null, null, Player.ATTACK_MODE.NONE, null, null));
    }
コード例 #3
0
    }    //IL_0001: Unknown result type (might be due to invalid IL or missing references)

    //IL_0006: Unknown result type (might be due to invalid IL or missing references)
    //IL_000c: Unknown result type (might be due to invalid IL or missing references)
    //IL_0011: Unknown result type (might be due to invalid IL or missing references)


    public void Initialize(StageObject srcObj, StageObject dstObj, EffectPlayProcessor.EffectSetting setting)
    {
        //IL_001f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0037: Unknown result type (might be due to invalid IL or missing references)
        //IL_003c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0041: Unknown result type (might be due to invalid IL or missing references)
        //IL_0052: Unknown result type (might be due to invalid IL or missing references)
        //IL_0057: Unknown result type (might be due to invalid IL or missing references)
        //IL_005c: Unknown result type (might be due to invalid IL or missing references)
        //IL_006e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0073: Expected O, but got Unknown
        //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ed: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f8: Unknown result type (might be due to invalid IL or missing references)
        //IL_0104: Unknown result type (might be due to invalid IL or missing references)
        //IL_0109: Expected O, but got Unknown
        if (srcObj == null || dstObj == null || setting == null)
        {
            Object.Destroy(this.get_gameObject());
        }
        else
        {
            m_beginPos    = srcObj.FindNode(setting.nodeName).get_transform().get_position();
            m_endPos      = dstObj.FindNode("Hips").get_transform().get_position();
            m_timer       = 0f;
            m_cachedTrans = this.get_transform();
            m_cachedTrans.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
            m_cachedTrans.set_position(m_beginPos);
            Transform effect = EffectManager.GetEffect(setting.effectName, m_cachedTrans);
            if (effect == null)
            {
                Object.Destroy(this.get_gameObject());
            }
            else
            {
                effect.set_localPosition(Vector3.get_zero());
                effect.set_localRotation(Quaternion.get_identity());
                effect.set_localScale(Vector3.get_one());
                m_effect = effect.get_gameObject();
            }
        }
    }