// 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); } }
// 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(); } }