Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TruckJourney
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanqing
TruckJourney
Commits
0f1c8277
Commit
0f1c8277
authored
Mar 12, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
0bf8d7f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
CarView.cs
TruckJourney/Assets/#A2_Scripts/Battle/View/CarView.cs
+10
-0
Demigiant.meta
TruckJourney/Assets/Plugins/Demigiant.meta
+0
-8
ProjectSettings.asset
TruckJourney/ProjectSettings/ProjectSettings.asset
+2
-1
No files found.
TruckJourney/Assets/#A2_Scripts/Battle/View/CarView.cs
View file @
0f1c8277
...
...
@@ -52,7 +52,12 @@ public class CarView : MonoBehaviour
}
m_rigidBody
=
GetComponent
<
Rigidbody
>();
wheels
=
GetComponentsInChildren
<
WheelCollider
>();
for
(
int
i
=
0
;
i
<
wheels
.
Length
;
i
++)
{
wheels
[
i
].
enabled
=
false
;
}
m_rigidBody
.
centerOfMass
=
centerOfMass
.
localPosition
;
m_rigidBody
.
isKinematic
=
true
;
m_tweenPath
=
GetComponent
<
DOTweenPath
>();
m_curPoint
=
waypoints
[
0
];
GameServices
.
inputService
.
pad
.
onTouchUp
+=
OnTouchUp
;
...
...
@@ -300,6 +305,11 @@ public class CarView : MonoBehaviour
if
(
varIndex
>=
3
)
{
m_bIsCanMove
=
true
;
for
(
int
i
=
0
;
i
<
wheels
.
Length
;
i
++)
{
wheels
[
i
].
enabled
=
true
;
}
m_rigidBody
.
isKinematic
=
false
;
for
(
int
i
=
0
;
i
<
m_targetTrans
.
Length
;
i
++)
{
Rigidbody
varBody
=
m_targetTrans
[
i
].
GetComponent
<
Rigidbody
>();
...
...
TruckJourney/Assets/Plugins/Demigiant.meta
deleted
100644 → 0
View file @
0bf8d7f0
fileFormatVersion: 2
guid: 5daed4a639236a24b8b83f1f1ae7ae42
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
TruckJourney/ProjectSettings/ProjectSettings.asset
View file @
0f1c8277
...
...
@@ -633,7 +633,8 @@ PlayerSettings:
13
:
CROSS_PLATFORM_INPUT
14
:
CROSS_PLATFORM_INPUT;MOBILE_INPUT
platformArchitecture
:
{}
scriptingBackend
:
{}
scriptingBackend
:
Android
:
1
il2cppCompilerConfiguration
:
{}
managedStrippingLevel
:
{}
incrementalIl2cppBuild
:
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment