Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
Jilt pan master
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
puxinyu
Jilt pan master
Commits
ae0dc2f3
Commit
ae0dc2f3
authored
Apr 12, 2021
by
lrh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
蒲: 摩擦设置
parent
d1a8b2c9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
关卡编辑.unity
Assets/0A1_Scenes/关卡编辑.unity
+0
-0
PlayerControl.cs
Assets/0A2_Scripts/GameScene/Battle/PlayerControl.cs
+13
-2
build_info
Assets/StreamingAssets/build_info
+1
-1
movie_001.mp4
Recordings/movie_001.mp4
+0
-0
No files found.
Assets/0A1_Scenes/关卡编辑.unity
View file @
ae0dc2f3
This diff is collapsed.
Click to expand it.
Assets/0A2_Scripts/GameScene/Battle/PlayerControl.cs
View file @
ae0dc2f3
...
@@ -39,13 +39,24 @@ public class PlayerControl : MonoBehaviour
...
@@ -39,13 +39,24 @@ public class PlayerControl : MonoBehaviour
if
(
Input
.
GetMouseButtonUp
(
0
))
if
(
Input
.
GetMouseButtonUp
(
0
))
{
{
mouseUpEnd
=
Input
.
mousePosition
;
mouseUpEnd
=
Input
.
mousePosition
;
Throw
(
mouseUpEnd
.
y
-
endpoint
.
y
);
Throw
(
mouseUpEnd
.
y
-
endpoint
.
y
);
// startpoint = endpoint;
// startpoint = endpoint;
}
}
this
.
transform
.
position
=
Vector3
.
MoveTowards
(
this
.
transform
.
position
,
dir
,
speed
*
Time
.
deltaTime
);
this
.
transform
.
position
=
Vector3
.
MoveTowards
(
this
.
transform
.
position
,
dir
,
speed
*
Time
.
deltaTime
);
}
}
// void LateUpdate()
//{
// if (Input.GetMouseButton(0))
// {
// if (Time.fixedDeltaTime % 10 == 0)
// {
// GameDebug.Log(mouseUpEnd.y - endpoint.y);
// }
// }
//}
void
move
(
Vector3
dirs
)
void
move
(
Vector3
dirs
)
{
{
float
x
=
-
dirs
.
x
;
float
x
=
-
dirs
.
x
;
...
...
Assets/StreamingAssets/build_info
View file @
ae0dc2f3
Build from DESKTOP-P4H38KD at 2021/4/12 18:29:20
Build from DESKTOP-P4H38KD at 2021/4/12 18:49:27
\ No newline at end of file
\ No newline at end of file
Recordings/movie_001.mp4
0 → 100644
View file @
ae0dc2f3
File added
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