Unity corre nulo de otro script
myObject.GetComponent<MyScript>().MyFunction();
okunamayanad
myObject.GetComponent<MyScript>().MyFunction();