public void HumanDrivingToIntersection_Enter() { mirrorFlag = 0; //Reloading the mirror reset -Bryce m_humanDrivingState = true; UserCar.GetComponent <CarUserControl> ().enabled = true; UserCar.GetComponent <CarUserControl> ().StartCar(); // HUD configuration // driving-to-stop-sign audioController.playAudio(4); hudController.Clear(); hudController.EngageManualMode(); hudController.model.centerText = VRAVEStrings.Stop_at_Stop_Sign; }
public void UserDriveRoute_Enter() { hudController.EngageManualMode(); UserCar.GetComponent <CarController> ().MaxSpeed = 25f; movingAI0.GetComponent <CarAIControl> ().enabled = true; movingAI1.GetComponent <CarAIControl> ().enabled = true; movingAI2.GetComponent <CarAIControl> ().enabled = true; movingAI3.GetComponent <CarAIControl> ().enabled = true; hudController.model.centerText = "Proceed through intersection"; UserCar.GetComponent <CarAIControl> ().enabled = false; UserCar.GetComponent <CarUserControl> ().enabled = true; //UserCar.GetComponent<CarAIControl> ().enabled = true; //UserCar.GetComponent<CarUserControl> ().enabled = false; }
private IEnumerator FollowBriefing() { //hudController.Clear(); hudController.model.centerText = ""; StopCoroutine("IntroBriefing"); StopCoroutine("IntroBriefAudio"); //Actually start introduction audio briefing. ambientAudioSource.mute = true; audioController.playAudio(1); yield return(new WaitForSeconds(7f)); (UserCar.GetComponent <CarUserControl>() as CarUserControl).enabled = true; hudController.model.centerText = VRAVEStrings.Follow_Car; hudController.EngageManualMode(); yield return(new WaitForSeconds(12f)); //hudController.Clear(); hudController.model.centerText = ""; }