public override void OnUse() { Hub.OpenMessagePanel("open microwave"); this.GetComponent <Animator>().SetBool("MicrowaveOpen", true); this.GetComponent <BoxCollider>().enabled = false; poison.SetActive(true); }
// Start is called before the first frame update void OnTriggerEnter(Collider other) { if (vc.InventoryIsActive == true) { hub.OpenMessagePanel(""); } }