What would the script be that would refrence from another script?
My example is, i have a key that when you pick it up, the var HasKey = true. Now i need my door script to play the open animation OnTriggerEnter, but only if HasKey(True). So it needs to check the other script. How do i do that?