Commit before OS change, No new Version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user