/* ---------------------------------------- * At Start, assign the external object's ChangePitch component to 'changePitch' variable */ void Start() { // Assign ChangePitch component from game object named 'animatedRocket' to the 'changePitch' variable changePitch = GameObject.Find ("animatedRocket").GetComponent<ChangePitch>(); }
/* ---------------------------------------- * At Start, assign the external object's ChangePitch component to 'changePitch' variable */ void Start() { // Assign ChangePitch component from game object named 'animatedRocket' to the 'changePitch' variable changePitch = GameObject.Find("animatedRocket").GetComponent <ChangePitch>(); }