public static void WellInteract(Script_Well well) { if (OnWellInteraction != null) { OnWellInteraction(well); } }
private void OnWellInteraction(Script_Well well) { if (isDone) { return; } if (well.Id == keyWells[currentWellIdx].Id) { Debug.Log($"CORRECT Well! {well}"); // On Last Well if (currentWellIdx == KeyWellsCount - 1) { ProgressNotification(true); } else { ProgressNotification(false); } currentWellIdx++; } else { Debug.Log($"WRONG Well! {well}... Restarting currentWellIdx"); currentWellIdx = 0; } }