You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
446 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DefenceBuff : Buff
{
public DefenceBuff(int setTimer, float setAmount)
{
timer = setTimer;
amount = setAmount;
}
public override void Apply(Character self)
{
self.SetDefenceCofficient(amount);
}
public override void Remove(Character self)
{
self.SetDefenceCofficient(-amount);
}
}