Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (Inventory.HeldItem == "Rope" && CC.Size == 1 && Vector3.Distance(this.transform.position, Player.transform.position) < interactDist)
     {
         GameObject.Instantiate(RopeStringThingy);
         Inventory.BurnItem();
         GameObject.Destroy(this.gameObject);
     }
 }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     if (Inv.HeldItem == "Scissors" && Input.GetMouseButtonDown(0) && Vector3.Distance(this.transform.position, Cursor.position) < 1)
     {
         GameObject.Destroy(this.gameObject);
         rips.SetActive(true);
         Inv.BurnItem();
     }
 }