コード例 #1
0
ファイル: scrDashBoard.cs プロジェクト: heyjohnnyc/mikulus
 /// <summary>
 /// 
 /// </summary>
 void Start()
 {
     //set up instances to our taxi and passenger scripts
     psngrScript = scrPassenger.Instance;
     txiDrvrScript = scrTaxiDriver.Instance;
     txiCntlr = scrTaxiController.Instance;
 }
コード例 #2
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;
    }
コード例 #3
0
ファイル: scrDebugSlate.cs プロジェクト: heyjohnnyc/mikulus
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Start()
 {
     psngrScript = scrPassenger.Instance;
     txiDrvrScript = scrTaxiDriver.Instance;
     txiCntlr = scrTaxiController.Instance;
 }