|
|
@@ -541,7 +541,11 @@ public class AttackController : MonoBehaviour
|
|
|
isAttackTriggerOn = true;
|
|
|
curAttackMethod.attackTrigger.gameObject.SetActive(true);
|
|
|
AttackInfo attackInfo = curAttackMethod.attackInfo;
|
|
|
- PoolManager.Instantiate(attackInfo.attackOnEffect, attackInfo.attackOnEffectPos.position,parent:owner.bodyTrans);
|
|
|
+ if (attackInfo.attackOnEffect)
|
|
|
+ {
|
|
|
+ PoolManager.Instantiate(attackInfo.attackOnEffect, attackInfo.attackOnEffectPos.position, parent: owner.bodyTrans);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
else if (isAttackTriggerOn && attackKeyCount >= nextEndKeyTime)
|
|
|
{
|