Changed to 3D graphics, Adapted House and Chest
This commit is contained in:
@@ -65,15 +65,11 @@ public class Controls : MonoBehaviour
|
||||
case "NPC":
|
||||
target.GetComponent<NPC>().interact();
|
||||
break;
|
||||
case "House":
|
||||
currentHouse = target;
|
||||
target.GetComponent<House>().interact();
|
||||
break;
|
||||
case "Door":
|
||||
currentHouse.GetComponent<House>().leaveHouse();
|
||||
target.GetComponent<Door>().interact();
|
||||
break;
|
||||
case "Chest":
|
||||
currentHouse.GetComponent<House>().getItem();
|
||||
target.GetComponent<Chest>().interact();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user