/// <summary> /// /// </summary> void Start() { //set up instances to our taxi and passenger scripts psngrScript = scrPassenger.Instance; txiDrvrScript = scrTaxiDriver.Instance; txiCntlr = scrTaxiController.Instance; }
/// <summary> /// /// </summary> void Awake() { scrTaxiController.Instance = this; objLandingGear = GameObject.Find("LandingGear"); fltMoveForce = 1000; fltRotateForce = 1000; fltMaxAngularVelocity = 1; fltMaxVelocity = 5; //Get ref to motor script objTaxiMotorScript = gameObject.GetComponent<scrTaxiMotor>(); //Set motor values objTaxiMotorScript.fltMaxAngularVelocity = fltMaxAngularVelocity; objTaxiMotorScript.fltMaxVelocity = fltMaxVelocity; objTaxiMotorScript.fltMoveForce = fltMoveForce; objTaxiMotorScript.fltRotateForce = fltRotateForce; objUIStyle = new GUIStyle(); objUIStyle.normal.textColor = Color.black; objUIStyle.fontSize = 25; }
/// <summary> /// Awake this instance. /// </summary> void Start() { psngrScript = scrPassenger.Instance; txiDrvrScript = scrTaxiDriver.Instance; txiCntlr = scrTaxiController.Instance; }