Hi, in a script I need to pass the gameobject this script is attached to, to another script. How do I go about this?
Thanks!
Hi, in a script I need to pass the gameobject this script is attached to, to another script. How do I go about this?
Thanks!
function DoSomething (obj : GameObject) {
}
DoSomething (this.gameObject);