示例#1
0
 public static void WellInteract(Script_Well well)
 {
     if (OnWellInteraction != null)
     {
         OnWellInteraction(well);
     }
 }
示例#2
0
    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;
        }
    }