A completely working minigame Insert Keys, Added SFX + Light, Still not mergable - needs dev team check
This commit is contained in:
@@ -25,13 +25,13 @@ public class KeyHole : MonoBehaviour
|
||||
|
||||
if (key.isSelected)
|
||||
{
|
||||
key.transform.parent.position = transform.position + key.insertedOffset;
|
||||
key.transform.parent.eulerAngles = key.insertedRotation;
|
||||
key.transform.position = transform.position + key.insertedOffset;
|
||||
key.transform.eulerAngles = key.insertedRotation;
|
||||
Debug.Log("Key teleported to keyhole " + index);
|
||||
|
||||
if (manager.CheckKeyHole(index))
|
||||
{
|
||||
Debug.Log("Correct, You Win");
|
||||
key.StartCoroutine(key.HandleWin());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user