|
@@ -30,6 +30,7 @@ namespace GameLogic.Combat.CombatTool
|
|
protected bool _isOne;
|
|
protected bool _isOne;
|
|
|
|
|
|
protected ParticleSystemPool ParticleSystemPool;
|
|
protected ParticleSystemPool ParticleSystemPool;
|
|
|
|
+ private int triigerCount;
|
|
|
|
|
|
public void Init(CombatMagicWeaponEntity a, CombatMagicWeaponEntity b, int id)
|
|
public void Init(CombatMagicWeaponEntity a, CombatMagicWeaponEntity b, int id)
|
|
{
|
|
{
|
|
@@ -59,7 +60,7 @@ namespace GameLogic.Combat.CombatTool
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- if ((a.HpBl <= 30 || b.HpBl < 20))
|
|
|
|
|
|
+ if (triigerCount >= 2)
|
|
{
|
|
{
|
|
MagicWeaponPingDouState.MagicWeaponPingDouData rollingStateData =
|
|
MagicWeaponPingDouState.MagicWeaponPingDouData rollingStateData =
|
|
CObjectPool.Instance.Fetch<MagicWeaponPingDouState.MagicWeaponPingDouData>();
|
|
CObjectPool.Instance.Fetch<MagicWeaponPingDouState.MagicWeaponPingDouData>();
|
|
@@ -90,8 +91,8 @@ namespace GameLogic.Combat.CombatTool
|
|
particleSystemPool.transform.rotation =
|
|
particleSystemPool.transform.rotation =
|
|
a.GameObject.transform.rotation;
|
|
a.GameObject.transform.rotation;
|
|
});
|
|
});
|
|
-
|
|
|
|
- a.ReduceHp(40);
|
|
|
|
|
|
+ triigerCount++;
|
|
|
|
+ // a.ReduceHp(40);
|
|
// _trigger = true;
|
|
// _trigger = true;
|
|
// _triggerTime = 0.5f;
|
|
// _triggerTime = 0.5f;
|
|
}
|
|
}
|
|
@@ -105,10 +106,7 @@ namespace GameLogic.Combat.CombatTool
|
|
|
|
|
|
_besselPathA.controlPoints.Add(b.GameObject.transform.TransformPoint(new Vector3(12.66f, 1, -5)));
|
|
_besselPathA.controlPoints.Add(b.GameObject.transform.TransformPoint(new Vector3(12.66f, 1, -5)));
|
|
_besselPathA.controlPoints.Add(b.dotPos);
|
|
_besselPathA.controlPoints.Add(b.dotPos);
|
|
- // GameObject G = new GameObject("BesselPathMono11");
|
|
|
|
- // BesselPathMono besselPathMono = G.AddComponent<BesselPathMono>();
|
|
|
|
- // besselPathMono.isRun = true;
|
|
|
|
- // besselPathMono.BesselPath = _besselPathA;
|
|
|
|
|
|
+
|
|
_besselPathB = new BesselPath();
|
|
_besselPathB = new BesselPath();
|
|
_besselPathB.controlPoints.Add(b.dotPos);
|
|
_besselPathB.controlPoints.Add(b.dotPos);
|
|
_besselPathB.controlPoints.Add(
|
|
_besselPathB.controlPoints.Add(
|
|
@@ -117,10 +115,6 @@ namespace GameLogic.Combat.CombatTool
|
|
_besselPathB.controlPoints.Add(
|
|
_besselPathB.controlPoints.Add(
|
|
a.GameObject.transform.TransformPoint(new Vector3(12.67f, -3.03f, -3.5f)));
|
|
a.GameObject.transform.TransformPoint(new Vector3(12.67f, -3.03f, -3.5f)));
|
|
_besselPathB.controlPoints.Add(a.dotPos);
|
|
_besselPathB.controlPoints.Add(a.dotPos);
|
|
- // GameObject G2 = new GameObject("BesselPathMono22");
|
|
|
|
- // BesselPathMono besselPathMono2 = G2.AddComponent<BesselPathMono>();
|
|
|
|
- // besselPathMono2.isRun = true;
|
|
|
|
- // besselPathMono2.BesselPath = _besselPathB;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
protected void SetBesselB()
|
|
protected void SetBesselB()
|
|
@@ -196,17 +190,21 @@ namespace GameLogic.Combat.CombatTool
|
|
else if (State == 2)
|
|
else if (State == 2)
|
|
{
|
|
{
|
|
_currTime += t;
|
|
_currTime += t;
|
|
- if (_currTime > 0.1f)
|
|
|
|
|
|
+ if (_currTime >2)
|
|
{
|
|
{
|
|
|
|
+ State = 3;
|
|
_currTime = 0;
|
|
_currTime = 0;
|
|
- if (a != null)
|
|
|
|
|
|
+ CombatCalculateTool.Instance.FaBaoPengZhuang(a,b);
|
|
|
|
+ CombatMagicWeaponEntity combatMagicWeaponEntityA = a;
|
|
|
|
+ CombatMagicWeaponEntity combatMagicWeaponEntityB = b;
|
|
|
|
+ if (combatMagicWeaponEntityA.HpBl<=0)
|
|
{
|
|
{
|
|
- a.ReduceHp(1);
|
|
|
|
|
|
+ combatMagicWeaponEntityA.MagicWeaponDie();
|
|
}
|
|
}
|
|
|
|
|
|
- if (b != null)
|
|
|
|
|
|
+ if (combatMagicWeaponEntityB.HpBl<=0)
|
|
{
|
|
{
|
|
- b.ReduceHp(1);
|
|
|
|
|
|
+ combatMagicWeaponEntityB.MagicWeaponDie();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -246,6 +244,7 @@ namespace GameLogic.Combat.CombatTool
|
|
|
|
|
|
GObjectPool.Instance.Recycle(ParticleSystemPool);
|
|
GObjectPool.Instance.Recycle(ParticleSystemPool);
|
|
ParticleSystemPool = null;
|
|
ParticleSystemPool = null;
|
|
|
|
+ triigerCount = 0;
|
|
}
|
|
}
|
|
|
|
|
|
public string tag { get; }
|
|
public string tag { get; }
|