private void ClearSceneRoom09() { InteractableAndSceneTransition endDoor = FindObjectOfType <InteractableAndSceneTransition>(); if (endDoor) { endDoor.IsDoorLocked = false; endDoor.Interact(null); } }
private void ClearSceneRoom03() { Item oarItem = Resources.Load <Item>("ScriptableObjects/Oar"); InteractableAndSceneTransition boat = FindObjectOfType <InteractableAndSceneTransition>(); if (boat) { boat.Interact(oarItem); Inventory.RemoveItem(oarItem); } }