void Start() { floor = gameObject.transform.position.y; metronome = metronomeObj.GetComponent<Metronome>(); beat = metronome.GetBeat(); velocity = (4f*highestPoint)/beat; grav = (-velocity) / beat; anim = gameObject.GetComponent<Animator>(); }
void Start() { floor = gameObject.transform.position.y; metronome = metronomeObj.GetComponent<Metronome>(); beat = metronome.GetBeat(); velocity = (4f*highestPoint)/beat; grav = (-velocity) / beat; anim = gameObject.GetComponent<Animator>(); }