Almost comletely working minigame, but still in progress, code almost done

This commit is contained in:
2026-05-08 10:20:22 +02:00
parent 8948cbdb14
commit 2f86bab336
6 changed files with 219 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
public class InserKeysMinigameManager : MonoBehaviour
{
public int correctIndex;
public bool isInputLocked = false;
private void Start()
{
correctIndex = Random.Range(0, 9);
Debug.Log("The correct keyhole is: " + correctIndex);
}
public bool CheckKeyHole(int index)
{
return index == correctIndex;
}
}