예제 #1
0
 public override void Update()
 {
     if (item.GetPicked() == true)
     {
         isCompleted = true;
     }
 }
예제 #2
0
 // 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();
 }