// Use this for initialization void Start() { //Sets the start distance to 0 for the purposes of proper score display gameStuffScript = GameObject.Find("Game Manager").GetComponent<gameStuff>(); shuttlePos = transform.position; shuttleRot = transform.rotation; startDistance = transform.position.y; }
void Awake() { gameStuffScript = GetComponentInParent<gameStuff>(); }