Beispiel #1
0
    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);
    }
Beispiel #2
0
    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();
    }