19 lines
380 B
C#
19 lines
380 B
C#
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;
|
|
}
|
|
}
|