public void EnterStation() { state = BusState.Pickup; drive.Toggle(); StartCoroutine(StatsOpen()); audioManager.PlaySound(AudioManager.Sound.Stop); }
void Start() { time = 0; passengers = 0; statusColor = new Color(73, 238, 21, 1); noPassengers.text = (passengers < 10 ? "0" : "") + passengers; multiplierText.text = "x1"; rb = GetComponent <Rigidbody>(); drive = GetComponent <RearWheelDrive>(); statusMes = GetComponent <StatusMessages>(); audioManager = FindObjectOfType <AudioManager>(); foreach (GameObject group in passengerGroups) { group.SetActive(false); } drive.Toggle(); StartCoroutine(LevelStart()); }