public void BuffDiactivate() { //if (eventController == null) //{ // eventController = Global.Component.GetEventController(); //} Type type = Type.GetType(buffType.ToString()); IBuff buff = (IBuff)Activator.CreateInstance(type); buff.Debuff(); //eventController.OnRemoveBuffEvent.Invoke(item); }
public void DeBuffDirty() { if (eventController == null) { eventController = Global.Component.GetEventController(); } if (buffController == null) { buffController = Global.Component.GetBuffController(); } Type type = Type.GetType(buffType.ToString()); IBuff buff = (IBuff)Activator.CreateInstance(type); buff.Debuff(); }