/// <summary> /// パーティメンバー個別へのダメージ演出(ダメージ数値) /// </summary> /// <param name="member_index"></param> /// <param name="effect_prefab"></param> public void setDamageValueMember(MasterDataDefineLabel.ElementType damage_element, BattleSceneUtil.MultiInt damage_value, BattleSceneUtil.MultiInt damage_target) { if (BattleParam.IsKobetsuHP == false) { return; } for (int idx = 0; idx < damage_value.getMemberCount(); idx++) { int dmg_target = damage_target.getValue((GlobalDefine.PartyCharaIndex)idx); if (dmg_target > 0) { int dmg_value = damage_value.getValue((GlobalDefine.PartyCharaIndex)idx); EDAMAGE_TYPE damage_type = EDAMAGE_TYPE.eDAMAGE_TYPE_NORMAL; if (damage_element != MasterDataDefineLabel.ElementType.NONE) { CharaOnce chara_once = BattleParam.m_PlayerParty.getPartyMember((GlobalDefine.PartyCharaIndex)idx, CharaParty.CharaCondition.EXIST); if (chara_once != null) { damage_type = InGameUtilBattle.GetSkillElementAffinity(damage_element, chara_once.m_CharaMasterDataParam.element); } } DrawDamageManager.showDamage(m_MemberHPTrans[idx], dmg_value, damage_type, 3.0f, getInterfaceExtentionRate() * INTERFACE_EXTENTION_DAMAGE_VALUE_OFFSET_Y + 0.14f, 2.0f); } } }
/// <summary> /// パーティメンバー個別へのダメージ演出(エフェクト再生) /// </summary> /// <param name="member_index"></param> /// <param name="effect_prefab"></param> public void setDamageEffectMember(GameObject effect_prefab, BattleSceneUtil.MultiInt damage_target) { if (effect_prefab == null) { return; } if (BattleParam.IsKobetsuHP == false) { if (damage_target.getValue(GlobalDefine.PartyCharaIndex.MAX) > 0) { setDamageEffectParty(effect_prefab); } return; } for (int idx = 0; idx < damage_target.getMemberCount(); idx++) { int dmg_target = damage_target.getValue((GlobalDefine.PartyCharaIndex)idx); if (dmg_target > 0) { EffectManager.Instance.playEffect(effect_prefab, Vector3.zero, Vector3.zero, m_MemberEffectTrans[idx], null, 1.0f); } } }