예제 #1
0
    float switchLeft()
    {
        float wantedPosX = getLerpWantedPos("L");

        //transform.position += new Vector3(-50, 0f, 0f);

        //play animation
        animController.playSwitchLeft();

        //Reset user input
        userInputHo = 0;
        //Update cooldown
        lastTime      = Time.time;
        onLaneNumber -= 1;
        lerping       = true;

        soundEffectController.playSwoosh();

        //on signal lights
        fxController.onLeftSignal();

        return(wantedPosX);
    }