private StageObject Find(List <StageObject> list, Vector3 pos, float range) { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) StageObject result = null; float num = range; int i = 0; for (int count = list.Count; i < count; i++) { StageObject stageObject = list[i]; if (stageObject.get_gameObject().get_activeSelf()) { Vector3 val = stageObject._transform.get_position() - pos; float magnitude = val.get_magnitude(); if (magnitude < num) { num = magnitude; result = stageObject; } } } return(result); }
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 static ObjectPacketSender SetupComponent(StageObject set_object) { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) if (set_object is Enemy) { return(set_object.get_gameObject().AddComponent <EnemyPacketSender>()); } if (set_object is Player) { return(set_object.get_gameObject().AddComponent <PlayerPacketSender>()); } if (set_object is Character) { return(set_object.get_gameObject().AddComponent <CharacterPacketSender>()); } return(set_object.get_gameObject().AddComponent <ObjectPacketSender>()); }
public static AnimEventShot Create(StageObject stage_object, AttackInfo atk_info, Vector3 pos, Quaternion rot, GameObject attach_object = null, bool isScaling = true, string change_effect = null, BulletData exBulletData = null, AtkAttribute exAtk = null, Player.ATTACK_MODE attackMode = Player.ATTACK_MODE.NONE, DamageDistanceTable.DamageDistanceData damageDistanceData = null, SkillInfo.SkillParam exSkillParam = null) { //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00c3: 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_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) BulletData bulletData = atk_info.bulletData; if (exBulletData != null) { bulletData = exBulletData; } if (atk_info.isBulletSkillReference) { Player player = stage_object as Player; if (player != null) { SkillInfo.SkillParam actSkillParam = player.skillInfo.actSkillParam; if (actSkillParam != null) { bulletData = actSkillParam.bullet; } } } if (bulletData == null) { Log.Error("Failed to shoot bullet!! atk_info:" + ((atk_info == null) ? string.Empty : atk_info.name)); return(null); } Transform val = Utility.CreateGameObject(bulletData.get_name(), MonoBehaviourSingleton <StageObjectManager> .I._transform, -1); AnimEventShot animEventShot = val.get_gameObject().AddComponent <AnimEventShot>(); if (isScaling) { Transform val2 = stage_object.get_gameObject().get_transform(); animEventShot.SetBaseScale(val2.get_lossyScale()); } else { animEventShot.SetBaseScale(Vector3.get_one()); } animEventShot.SetAttachObject(attach_object); if (bulletData.type == BulletData.BULLET_TYPE.BREAKABLE) { animEventShot.SetTargetPoint(); } animEventShot.Shot(stage_object, atk_info, bulletData, pos, rot, change_effect, true, exAtk, attackMode, damageDistanceData, exSkillParam); return(animEventShot); }
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)); }