public void Hover() { Debug.Log(name + ": Hover " + SlottingImage.enabled); if (SlottingImage.enabled) { workshop.Emit(this, StoreItemEvents.Hover); } }
private void World_OnNewLevel(int lvl) { //Debug.Log(string.Format("{0} <= {1} = {2}", visibleFromLvl, lvl, visibleFromLvl <= lvl)); if (visibleFromLvl <= lvl) { markingImage.enabled = true; workshop.Emit(this, SlotEvent.Activated); } else { markingImage.enabled = false; } }
private void Workshop_OnRocketSlotAction(RocketSlot slot, SlotEvent type) { if (type == SlotEvent.Activated) { Start(); } if (type == SlotEvent.Empied || type == SlotEvent.Filled) { workshop.Emit(Ready ? RocketEventsTypes.Ready : RocketEventsTypes.Incomplete); } }