예제 #1
0
    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;
        }
    }
예제 #2
0
 public void OnIceDamage(IceDamageArgs args)
 {
     lit = false;
 }
예제 #3
0
 public void OnIceDamage(IceDamageArgs args)
 {
     frozen = true;
 }