public override void Update() { if (item.GetPicked() == true) { isCompleted = true; } }
// Update is called once per frame void Update() { if (GetComponent <mouseHovor>().mouseOver == true && Input.GetKeyDown(KeyCode.E)) { DoorView.RPC("DoorInteract", RpcTarget.AllBuffered, null); //ThisDoor.Interact(); } else if (locked && ThisKey.GetPicked() == true && GetComponent <mouseHovor>().mouseOver == true && Input.GetKeyDown(KeyCode.Mouse0)) { if (Player.AllPlayers[0].UseItemInInventory(ThisKey)) { DoorView.RPC("DoorUnlock", RpcTarget.AllBuffered, null); } } ThisDoor.Update(); }