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; }
/// <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); }