Example #1
0
    /// <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;
    }
Example #2
0
 /// <summary>
 /// 
 /// </summary>
 void Awake()
 {
     scrTaxiMotor.Instance = this;
     fltMoveForce = 1000;
     fltRotateForce = 500;
     fltMaxAngularVelocity = 0.5f;
     fltMaxVelocity = 5;
 }