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