Almost comletely working minigame, but still in progress, code almost done
This commit is contained in:
18
Assets/KeyInsertMinigameAssets/Scripts/InserKeysManager.cs
Normal file
18
Assets/KeyInsertMinigameAssets/Scripts/InserKeysManager.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user