Error: does not contain a definition for " " need help,Error: does not contain definition for " " really need help
So im getting this error. what i needed to do is to make my car stop before the countdown ends and the car will be able to run again. so i tried to change the m_Topspeed to 0.0f to make the car stop. awhile ago its functional but now it has this error and i cant seem to find the solution. i'd appreciate it if anyone can help thank you
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityStandardAssets.Vehicles.Car.CarController; public class Countdown : MonoBehaviour { public GameObject CountDown; public AudioSource GetReady; public AudioSource GoAudio; public GameObject LapTimer; public AudioSource LevelMusic; void Start () { StartCoroutine (CountStart ()); } IEnumerator CountStart () { CarController.m_Topspeed = 0.0f; yield return new WaitForSeconds (0.5f); CountDown.GetComponent<Text> ().text = "3"; GetReady.Play (); CountDown.SetActive (true); yield return new WaitForSeconds (1); CountDown.SetActive (false); CountDown.GetComponent<Text> ().text = "2"; GetReady.Play (); CountDown.SetActive (true); yield return new WaitForSeconds (1); CountDown.SetActive (false); CountDown.GetComponent<Text> ().text = "1"; GetReady.Play (); CountDown.SetActive (true); yield return new WaitForSeconds (1); CountDown.SetActive (false); GoAudio.Play (); LapTimer.SetActive (true); CarController.m_Topspeed = 100f; LevelMusic.Play (); } }
Your answer
![](https://koobas.hobune.stream/wayback/20220612160931im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I need help about object defination. 1 Answer
NullPointerException with Start, not Update 0 Answers
Cannot convert type (class) to the same type (class) 1 Answer
Error CS1061 type Valve.VR.SteamVR_Render - Got code from another project? 0 Answers
Cant access to camera propertie,Can't access to camera properties 0 Answers