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.
22 lines
480 B
22 lines
480 B
using System.Runtime.CompilerServices;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AttackBuff : Buff
|
|
{
|
|
public AttackBuff(int setTimer, float setAmount)
|
|
{
|
|
timer = setTimer;
|
|
amount = setAmount;
|
|
}
|
|
public override void Apply(Character self)
|
|
{
|
|
self.SetAttackCofficient(amount);
|
|
}
|
|
public override void Remove(Character self)
|
|
{
|
|
self.SetAttackCofficient(-amount);
|
|
}
|
|
}
|