public virtual void Reset(int BuffID, Entity owner, Entity caster) { buffInfo = CSVManager.GetBuffCfg(BuffID); this.buffOwner = owner; this.buffCaster = caster; leftTime = 0; }
public static CSVBuff GetBuffCfg(int ID) { CSVBuff data = null; m_BuffData.TryGetValue(ID, out data); return(data); }
public BuffBase(int buffID, Entity buffOwner, Entity caster) { buffInfo = CSVManager.GetBuffCfg(buffID); if (buffInfo == null) { throw new Exception("找不到buff配置 : " + buffID); } this.buffOwner = buffOwner; this.buffCaster = caster; }