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>(); }