public void OnIceDamage(IceDamageArgs args) { BurnStatus burn = GetComponent <BurnStatus>(); if (burn != null) { burn.duration = 0f; return; } FreezeStatus freeze = GetComponent <FreezeStatus>(); if (freeze != null) { freeze.duration = Mathf.Max(freeze.duration, args.duration); return; } else { freeze = gameObject.AddComponent <FreezeStatus>(); freeze.duration = args.duration; } }
public void OnIceDamage(IceDamageArgs args) { lit = false; }
public void OnIceDamage(IceDamageArgs args) { frozen = true; }