Example #1
0
    public ICombatUnit RemoveStateDecorator(CombatUnitStateDecoratorBase stateDecorator)
    {
        StateDecorators.Remove(stateDecorator);

        Debug.Log("<color=red>" + stateDecorator.GetType() + " removed from " + gameObject.name + "</color>");

        return(this);
    }
Example #2
0
    public ICombatUnit AddStateDecorator(CombatUnitStateDecoratorBase stateDecorator)
    {
        StateDecorators.Add(stateDecorator);

        Debug.Log("<color=green>" + stateDecorator.GetType() + " added to " + gameObject.name + "</color>");

        return(this);
    }