public bool IsHaveBuff(BuffBehaviour.BuffType _type) { if (buffList.Count == 0) { return(false); } if (buffList.FindIndex(buff => buff.buffType == _type) >= 0) { return(true); } return(false); }
public void AddBuff(BuffBehaviour.BuffType _type, float time = -1) { AddBuff(BuffBehaviour.GetBuff(_type, time)); }