void Start() { m_mesh = transform.parent.GetComponentInChildren <TextMesh>(); m_drive = transform.parent.GetComponent <LinearDrive>(); }
private void Awake() { // Get the real value of the linear drive //linearDrive = objectToReset.GetComponent<LinearDrive>(); linearDrive = this.GetComponent <LinearDrive>(); }