客户端rsa,冗余清理,bug修复,安卓build问题
This commit is contained in:
@@ -1191,7 +1191,7 @@ public class EffectSystem : MonoBehaviour
|
||||
|
||||
comp.ReceiveDamage(perTick, source, false);
|
||||
// No need to call TriggerQueuedPopups manually as deferPopup is false
|
||||
yield return new WaitForSeconds(tickInterval);
|
||||
yield return GameplayClock.WaitForSeconds(tickInterval);
|
||||
elapsed += tickInterval;
|
||||
}
|
||||
}
|
||||
@@ -1239,7 +1239,7 @@ public class EffectSystem : MonoBehaviour
|
||||
|
||||
comp.ReceiveHeal(perTick, source, false);
|
||||
// No need to call TriggerQueuedPopups manually as deferPopup is false
|
||||
yield return new WaitForSeconds(tickInterval);
|
||||
yield return GameplayClock.WaitForSeconds(tickInterval);
|
||||
elapsed += tickInterval;
|
||||
}
|
||||
}
|
||||
@@ -1305,7 +1305,7 @@ public class EffectSystem : MonoBehaviour
|
||||
{
|
||||
ally.ModifyMana(Mathf.CeilToInt(perTick), true, true);
|
||||
}
|
||||
yield return new WaitForSeconds(tickInterval);
|
||||
yield return GameplayClock.WaitForSeconds(tickInterval);
|
||||
elapsed += tickInterval;
|
||||
}
|
||||
}
|
||||
@@ -1321,7 +1321,7 @@ public class EffectSystem : MonoBehaviour
|
||||
}
|
||||
|
||||
comp.ApplyBuff(buff, source);
|
||||
yield return new WaitForSeconds(buff.duration);
|
||||
yield return GameplayClock.WaitForSeconds(buff.duration);
|
||||
comp.RemoveBuff(buff.buffId);
|
||||
}
|
||||
|
||||
@@ -1337,7 +1337,7 @@ public class EffectSystem : MonoBehaviour
|
||||
}
|
||||
|
||||
comp.ApplyBuff(debuff, source);
|
||||
yield return new WaitForSeconds(debuff.duration);
|
||||
yield return GameplayClock.WaitForSeconds(debuff.duration);
|
||||
comp.RemoveBuff(debuff.buffId);
|
||||
}
|
||||
|
||||
@@ -1348,7 +1348,7 @@ public class EffectSystem : MonoBehaviour
|
||||
{
|
||||
if (ally == null) yield break;
|
||||
ally.scoreEfficiency = Mathf.Max(0f, ally.scoreEfficiency + delta);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (ally == null) yield break;
|
||||
ally.scoreEfficiency = Mathf.Max(0f, ally.scoreEfficiency - delta);
|
||||
}
|
||||
@@ -1369,7 +1369,7 @@ public class EffectSystem : MonoBehaviour
|
||||
if (ally != null)
|
||||
{
|
||||
ally.damageResistance = ClampDamageResistance(ally.damageResistance + delta);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (ally == null) yield break;
|
||||
ally.damageResistance = ClampDamageResistance(ally.damageResistance - delta);
|
||||
yield break;
|
||||
@@ -1380,7 +1380,7 @@ public class EffectSystem : MonoBehaviour
|
||||
{
|
||||
enemy.damageResistance = ClampDamageResistance(enemy.damageResistance + delta);
|
||||
iBudeffPrefabController.Instance?.RefreshEnemyNow(enemy);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (enemy == null) yield break;
|
||||
enemy.damageResistance = ClampDamageResistance(enemy.damageResistance - delta);
|
||||
yield break;
|
||||
@@ -1403,7 +1403,7 @@ public class EffectSystem : MonoBehaviour
|
||||
{
|
||||
if (ally == null) yield break;
|
||||
ally.ModifyAttack(delta);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (ally == null) yield break;
|
||||
ally.ModifyAttack(-delta);
|
||||
}
|
||||
@@ -1427,7 +1427,7 @@ public class EffectSystem : MonoBehaviour
|
||||
if (enemy == null) yield break;
|
||||
enemy.ModifyAttack(delta);
|
||||
iBudeffPrefabController.Instance?.RefreshEnemyNow(enemy);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (enemy == null) yield break;
|
||||
enemy.ModifyAttack(-delta);
|
||||
}
|
||||
@@ -1445,7 +1445,7 @@ public class EffectSystem : MonoBehaviour
|
||||
if (ally == null) yield break;
|
||||
ally.SetMaxHP(Mathf.Max(1, ally.maxHP + delta), false);
|
||||
if (delta > 0) ally.SetCurrentHP(ally.currentHP + delta, false);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (ally == null) yield break;
|
||||
ally.SetMaxHP(Mathf.Max(1, ally.maxHP - delta), false);
|
||||
}
|
||||
@@ -1464,7 +1464,7 @@ public class EffectSystem : MonoBehaviour
|
||||
enemy.SetMaxHP(Mathf.Max(1, enemy.maxHP + delta), false);
|
||||
if (delta > 0) enemy.ModifyHP(delta);
|
||||
iBudeffPrefabController.Instance?.RefreshEnemyNow(enemy);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (enemy == null) yield break;
|
||||
enemy.SetMaxHP(Mathf.Max(1, enemy.maxHP - delta), false);
|
||||
}
|
||||
@@ -1481,7 +1481,7 @@ public class EffectSystem : MonoBehaviour
|
||||
{
|
||||
if (ally == null) yield break;
|
||||
ally.SetMaxMana(Mathf.Max(1, ally.maxMana + delta), false);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (ally == null) yield break;
|
||||
ally.SetMaxMana(Mathf.Max(1, ally.maxMana - delta), false);
|
||||
}
|
||||
@@ -1499,7 +1499,7 @@ public class EffectSystem : MonoBehaviour
|
||||
if (enemy == null) yield break;
|
||||
enemy.SetMaxMana(Mathf.Max(1, enemy.maxMana + delta), false);
|
||||
iBudeffPrefabController.Instance?.RefreshEnemyNow(enemy);
|
||||
yield return new WaitForSeconds(duration);
|
||||
yield return GameplayClock.WaitForSeconds(duration);
|
||||
if (enemy == null) yield break;
|
||||
enemy.SetMaxMana(Mathf.Max(1, enemy.maxMana - delta), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user