예제 #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         OpenDoor.openDoor();
     }
 }
 private void OnTriggerEnter(Collider other)
 {
     Debug.Log(gm.nextRoom);
     if (other.name == "Player" && gm.nextRoom == nextRoom)
     {
         op.openDoor();
     }
 }
예제 #3
0
    public void ActivateStatic(Inventory playerInventory)
    {
        if (effectType == 0) //Opening, disabling of doors
        {
            OpenDoor door = GetComponent <OpenDoor>();

            door.openDoor(playerInventory);
        }

        //if (effectType == 1) --activate some object
    }
예제 #4
0
    public void launchActionFor(GameObject go)
    {
        switch (go.name)
        {
        case "balle_notex":
            gameManager.validEnigmaOne();
            openDoor.openDoor();
            return;

        default:
            return;
        }
    }
 public void openDoor()
 {
     OpenDoor.openDoor();
 }