protected override void OnSpawnDisableExtra(RosemarySpawn spawn) { if (!spawn) { return; } var element = spawn.GetComponent <RosemaryResourceAmountPanel>(); if (!element) { return; } m_elements.Remove(element.resourceName); }
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); } }