how to reference function in unity

89

how to reference function in unity -

public GameObject myObject; //make ref. in inspector window

myObject.GetComponent<MyScript>().MyFunction();

Comments

Submit
0 Comments