Beispiel #1
0
    private void ClearSceneRoom09()
    {
        InteractableAndSceneTransition endDoor = FindObjectOfType <InteractableAndSceneTransition>();

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

        if (boat)
        {
            boat.Interact(oarItem);
            Inventory.RemoveItem(oarItem);
        }
    }