Beispiel #1
0
    public override void OnItemAddedOrRemoved(Item item, bool added)
    {
        ItemModXMasTreeDecoration component = item.info.GetComponent <ItemModXMasTreeDecoration>();

        if (component != null)
        {
            base.SetFlag((BaseEntity.Flags)component.flagsToChange, added, false, true);
        }
        base.OnItemAddedOrRemoved(item, added);
    }
Beispiel #2
0
    public override void OnItemAddedOrRemoved(Item item, bool added)
    {
        ItemModXMasTreeDecoration component = (ItemModXMasTreeDecoration)((Component)item.info).GetComponent <ItemModXMasTreeDecoration>();

        if (Object.op_Inequality((Object)component, (Object)null))
        {
            this.SetFlag((BaseEntity.Flags)component.flagsToChange, added, false, true);
        }
        base.OnItemAddedOrRemoved(item, added);
    }