예제 #1
0
 public void Hover()
 {
     Debug.Log(name + ": Hover " + SlottingImage.enabled);
     if (SlottingImage.enabled)
     {
         workshop.Emit(this, StoreItemEvents.Hover);
     }
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
    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);
        }
    }