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);
     }
 }
Exemple #2
0
        public void StartTracking(SlotBase slot)
        {
            spriteRenderer.color = slot.GetGear().gearColor;

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

            isTracking = true;
        }
Exemple #3
0
        public void ExcecuteOnExit(SlotBase slot)
        {
            if (slot == slotOriginal)
            {
                return;
            }

            if (slot != slotCurrent)
            {
                return;
            }

            slotCurrent = null;
        }
Exemple #4
0
        public void ExecuteOnEnter(SlotBase slot)
        {
            if (slot == slotOriginal)
            {
                return;
            }

            if (slot == slotCurrent)
            {
                return;
            }

            slotCurrent = slot;
        }