|
@@ -14,6 +14,7 @@ public class ESpirits_KiteNinja : Enemy
|
|
|
[LabelText("逃跑距离")] public float fleeDistance;
|
|
[LabelText("逃跑距离")] public float fleeDistance;
|
|
|
[LabelText("逃跑速度比例")] public Vector2 fleeSpeedRate;
|
|
[LabelText("逃跑速度比例")] public Vector2 fleeSpeedRate;
|
|
|
[LabelText("攻击时间")] public float attackTotalTime;
|
|
[LabelText("攻击时间")] public float attackTotalTime;
|
|
|
|
|
+ public ChainShoot chainShoot;
|
|
|
public bool targetIsPlayer;
|
|
public bool targetIsPlayer;
|
|
|
public int lockingNum;
|
|
public int lockingNum;
|
|
|
private PlayerController player;
|
|
private PlayerController player;
|
|
@@ -100,6 +101,7 @@ public class ESpirits_KiteNinja : Enemy
|
|
|
switch (state)
|
|
switch (state)
|
|
|
{
|
|
{
|
|
|
case CharacterState.Attack:
|
|
case CharacterState.Attack:
|
|
|
|
|
+ chainShoot.startAttack = false;
|
|
|
ChooseLockingTarget();
|
|
ChooseLockingTarget();
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|