|
@@ -366,7 +366,7 @@ public class MoveCharacter : Character
|
|
|
public GameObject reductionEffect;
|
|
public GameObject reductionEffect;
|
|
|
|
|
|
|
|
//伤害减免状态开启(减免程度,减免时长)
|
|
//伤害减免状态开启(减免程度,减免时长)
|
|
|
- public void DamageReductionStateOn(float degree, float onTime, GameObject effect)
|
|
|
|
|
|
|
+ public void DamageReductionStateOn(float degree, GameObject effect)
|
|
|
{
|
|
{
|
|
|
if (reductionEffect == null)
|
|
if (reductionEffect == null)
|
|
|
{
|
|
{
|
|
@@ -375,6 +375,10 @@ public class MoveCharacter : Character
|
|
|
reductionEffect.SetActive(true);
|
|
reductionEffect.SetActive(true);
|
|
|
isDamageReduction = true;
|
|
isDamageReduction = true;
|
|
|
reductionDegree = degree;
|
|
reductionDegree = degree;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void DamageReductionStateToOff(float onTime)
|
|
|
|
|
+ {
|
|
|
Invoke("DamageReductionStateOff", onTime);
|
|
Invoke("DamageReductionStateOff", onTime);
|
|
|
}
|
|
}
|
|
|
|
|
|