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); } }
public void StartTracking(SlotBase slot) { spriteRenderer.color = slot.GetGear().gearColor; slotOriginal = slot; slotOriginal.RemoveGear(); slotCurrent = null; isTracking = true; }
public void ExcecuteOnExit(SlotBase slot) { if (slot == slotOriginal) { return; } if (slot != slotCurrent) { return; } slotCurrent = null; }
public void ExecuteOnEnter(SlotBase slot) { if (slot == slotOriginal) { return; } if (slot == slotCurrent) { return; } slotCurrent = slot; }