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); }
public void Destroy() { colliderHiter = null; Object.Destroy(gameObject); gameObject = null; }