|
|
@@ -31,13 +31,18 @@ public class BeHitTrigger : MonoBehaviour
|
|
|
{
|
|
|
owner.BeHit(attackInfo,attackFrom);
|
|
|
Debug.Log(attackInfo.damage + "" + attackFrom.name);
|
|
|
- if (attackInfo.isDemSummon || owner.GetComponent<Demonic>())
|
|
|
+ }
|
|
|
+
|
|
|
+ public void JudgeTurnWhite(bool isDemSummon, Character owner)
|
|
|
+ {
|
|
|
+ //敌方士兵受到起手式伤害/我方士兵受到伤害
|
|
|
+ if (isDemSummon || owner.GetComponent<Demonic>())
|
|
|
{
|
|
|
- TurnWhite(); //来自我方士兵攻击机枪手是的并购降价后
|
|
|
+ TurnWhite();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void TurnWhite()
|
|
|
+ private void TurnWhite()
|
|
|
{
|
|
|
owner.meshRenderer.material.SetFloat("_FillPhase", 0.6f);
|
|
|
Invoke("TurnOrigColor", 0.1f);
|