function OnTriggerStay (other : Collider) {
if (other.CompareTag ("Enemy")) {
I am trying to access a variable from the parent of this collider, in a script called limbo
but I cannot use static variables. How would i go about on doing this?
function OnTriggerStay (other : Collider) {
if (other.CompareTag ("Enemy")) {
I am trying to access a variable from the parent of this collider, in a script called limbo
but I cannot use static variables. How would i go about on doing this?
other.gameObject.GetComponent(whatever).someVariable
yea i got it right before you sent that. but thank you