示例#1
0
    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>();
    }