|
|
@@ -269,12 +269,6 @@ public class AttackController : MonoBehaviour
|
|
|
[DisplayOnly]
|
|
|
public SpecialSkills skill;
|
|
|
[DisplayOnly]
|
|
|
- public GameObject attackEffect;
|
|
|
- [DisplayOnly]
|
|
|
- public Dictionary<string, GameObject> effects;
|
|
|
- [DisplayOnly]
|
|
|
- public GameObject effect;
|
|
|
- [DisplayOnly]
|
|
|
public float attackDistance;
|
|
|
|
|
|
[Header("¹¥»÷·¶Î§")]
|
|
|
@@ -315,7 +309,6 @@ public class AttackController : MonoBehaviour
|
|
|
attackInfo = attackMethod[0].attackInfo;
|
|
|
curDamage = attackInfo.damage;
|
|
|
}
|
|
|
- effects = new Dictionary<string, GameObject>();
|
|
|
for (int i = 0; i < attackMethod.Length; i++)
|
|
|
{
|
|
|
if (attackMethod[i].needToChange)
|
|
|
@@ -428,20 +421,6 @@ public class AttackController : MonoBehaviour
|
|
|
|
|
|
public virtual void Attack_march(int id)
|
|
|
{
|
|
|
- if (attackEffect != null)
|
|
|
- {
|
|
|
- if (effects.ContainsKey(attackEffect.name))
|
|
|
- {
|
|
|
- effect = effects[attackEffect.name];
|
|
|
- effect.SetActive(true);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- effects[attackEffect.name] = Instantiate(attackEffect, owner.bodyTrans);
|
|
|
- effect = effects[attackEffect.name];
|
|
|
- effect.SetActive(true);
|
|
|
- }
|
|
|
- }
|
|
|
Vector3 leftDir = owner.GetMoveDir();
|
|
|
if (leftDir.x > 0.3f)
|
|
|
{
|