// 添加新Buff public void _internal_add_new_buff(BaseEntity caster, BuffCnf buffCnf) { BuffLog.Log("Attach Buff--> [{0}] add buff [{1}] ", _owner.ToDes(), buffCnf.desc); BaseBuff newBuff = _attach_buff(caster, buffCnf.id); /*//新Buff 默认情况下在OnAttach下会增加一层 TODO 剔除*/ bool result = newBuff.AddLayer(); // 触发回调 if (result) { newBuff.RaiseEvent(E_BuffEvent.BUFF_ADD_LAYER); } }