Beispiel #1
0
        protected override void OnSpawnDisableExtra(RosemarySpawn spawn)
        {
            if (!spawn)
            {
                return;
            }
            var element = spawn.GetComponent <RosemaryResourceAmountPanel>();

            if (!element)
            {
                return;
            }

            m_elements.Remove(element.resourceName);
        }
Beispiel #2
0
        protected override void OnSpawnDisableExtra(RosemarySpawn spawn)
        {
            if (!spawn)
            {
                return;
            }
            var button = spawn.GetComponent <RosemaryProductButton>();

            if (!button)
            {
                return;
            }

            if (button.product)
            {
                m_buttons.Remove(button.product);
            }
        }