private void Awake() { anotherScript = GetComponent <AnotherScript>(); yetAnotherScript = GetComponent <YetAnotherScript>(); //get box collider boxCol = otherGameObject.GetComponent <BoxCollider>(); }
void Awake() { anotherScript = GetComponent <AnotherScript>(); yetAnotherScript = otherGameObject.GetComponent <YetAnotherScript>(); boxCol = otherGameObject.GetComponent <BoxCollider>(); }
// Use this for initialization private void Awake() { anotherScript = GetComponent <AnotherScript>(); yetAnotherscript = othergameobject.GetComponent <YetAnotherScript>(); _boxCollider = othergameobject.GetComponent <BoxCollider>(); }
void Awake() { anotherScript = GetComponent <AnotherScript>(); yetAnotherScript = otherGameObject.GetComponent <YetAnotherScript>(); }
//initialising the scripts; void Awake() { myOtherScript = GetComponent <MyOtherScript>(); anotherScript = otherGameObject.GetComponent <AnotherScript>(); }
Start() { anotherScript = GameObject.Find("Name of Object").GetComponent <AnotherScript>(); }