Added right numbers to keyholes, project clean up, safety commit - to not lose progress

This commit is contained in:
2026-05-07 17:30:10 +02:00
parent f9ceea4992
commit 8948cbdb14
9 changed files with 409 additions and 179 deletions

View File

@@ -1,28 +0,0 @@
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
public class KeySlot : MonoBehaviour, IDropHandler
{
public string correctKeyID;
public void OnDrop(PointerEventData eventData)
{
DraggableKey key = eventData.pointerDrag.GetComponent<DraggableKey>();
if (key != null)
{
if (key.keyID == correctKeyID)
{
key.transform.position = transform.position;
key.enabled = false;
KeyminigameManager.Instance.CheckWin();
}
else
{
KeyminigameManager.Instance.Fail();
}
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 4f5eef97f16bb6b47ba88f96f9d051e9