Exemplo n.º 1
0
 public void StartTracking(SlotBase slot)
 {
     //Tracking effect should only be possible on game running or game clear
     if (currentGameState == GameStates.Running || currentGameState == GameStates.GameClear)
     {
         onStartTracking?.Invoke(slot);
     }
 }
Exemplo n.º 2
0
        public void StartTracking(SlotBase slot)
        {
            spriteRenderer.color = slot.GetGear().gearColor;

            slotOriginal = slot;
            slotOriginal.RemoveGear();
            slotCurrent = null;

            isTracking = true;
        }
Exemplo n.º 3
0
        public void ExcecuteOnExit(SlotBase slot)
        {
            if (slot == slotOriginal)
            {
                return;
            }

            if (slot != slotCurrent)
            {
                return;
            }

            slotCurrent = null;
        }
Exemplo n.º 4
0
        public void ExecuteOnEnter(SlotBase slot)
        {
            if (slot == slotOriginal)
            {
                return;
            }

            if (slot == slotCurrent)
            {
                return;
            }

            slotCurrent = slot;
        }