Commit before OS change, No new Version

This commit is contained in:
Nicola Sovic
2023-03-14 17:53:37 +01:00
parent 1e454f789d
commit 3e2edced88
103 changed files with 7482 additions and 715 deletions

View File

@@ -11,6 +11,7 @@ public class Controls : MonoBehaviour
GameObject worldGen;
GameObject playerCam;
UIHandler uihandler;
GameObject currentHouse;
void Start()
{
@@ -65,6 +66,14 @@ public class Controls : MonoBehaviour
target.GetComponent<NPC>().interact();
break;
case "House":
currentHouse = target;
target.GetComponent<House>().interact();
break;
case "Door":
currentHouse.GetComponent<House>().leaveHouse();
break;
case "Chest":
currentHouse.GetComponent<House>().getItem();
break;
}
}