예제 #1
0
 private void AccessToResources()
 {
     mGearParam       = Resources.Load(ConstString.Path.GEAR_PARAM) as GearParam;
     mRayConfig       = Resources.Load(ConstString.Path.RAY_CONFIG) as RayConfig;
     mWheelParams     = Resources.Load(ConstString.Path.WHEEL_PARAM) as WheelParams;
     mVehicleSettings = Resources.Load(ConstString.Path.VEHICLE_SETTINGS) as VehicleSettings;
 }
예제 #2
0
 /// <summary>
 /// ■rigidbody:自分の車のRigidbody
 /// ■transform:自分の車のtrasnform
 /// ■wheelParams:タイヤの各状態時の滑り具合
 /// </summary>
 /// <param name="rigidbody"></param>
 public VehicleMove(Rigidbody rigidbody, Transform transform, WheelParams wheelParams,
                    VehicleSettings.DriftSettings driftSettings, VehicleSettings.SteerSensitivities steerSensitivities)
 {
     mRigidbody      = rigidbody;
     mTransform      = transform;
     mWheelParams    = wheelParams;
     mSteeringScript = new SteeringScript(steerSensitivities);
     mDriftScript    = new DriftScript(driftSettings);
 }