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(); } }
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 }
public void launchActionFor(GameObject go) { switch (go.name) { case "balle_notex": gameManager.validEnigmaOne(); openDoor.openDoor(); return; default: return; } }
public void openDoor() { OpenDoor.openDoor(); }