public static Buff Create(int kid, float remainTime) { Buff buff = new Buff(); buff.Uid = Guid.NewGuid().ToString(); buff.Data = BuffDataManager.Instance.GetData(kid); buff.RemainTime = remainTime; return buff; }
public void AddBuff(Buff buff) { if(!buffDic.ContainsKey(buff.Data.Kid)) { buffDic.Add(buff.Data.Kid, buff); } }