Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
LSK_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이상윤
2020-06-15 15:57:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1aeb0a25af38fae17aaf5d9117c8120e33d64b7
f1aeb0a2
1 parent
5352bc72
trainer
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
sourcecode/capstone/Assets/Script/CharacterSkeleton.cs
sourcecode/capstone/Assets/Script/Move.cs
sourcecode/capstone/Assets/Script/CharacterSkeleton.cs
View file @
f1aeb0a
...
...
@@ -334,7 +334,7 @@ class CharacterSkeleton
{
Vector3
m
=
joint
[
JointType_SpineBase
];
if
(
mirrored
)
m
=
new
Vector3
(-
7
,
m
.
y
-
9
,
-
2
);
if
(
mirrored
)
m
=
new
Vector3
(-
2
,
m
.
y
-
9
,
-
2
);
humanoid
.
transform
.
position
=
m
;
}
}
...
...
sourcecode/capstone/Assets/Script/Move.cs
View file @
f1aeb0a
...
...
@@ -37,8 +37,9 @@ public class Move : MonoBehaviour
public
int
trainer_j
=
0
;
public
float
[]
trainer_data1
;
public
int
[]
trainer_state
;
public
int
speed
=
0
;
//lsy end
public
Text
AngleLeftKnee
;
public
Text
AngleRightKnee
;
public
Text
KneeToeLeft
;
...
...
@@ -67,6 +68,7 @@ public class Move : MonoBehaviour
//lsy
void
Trainer_Run
()
{
//Thread.Sleep(50);
if
(
trainer_j
>=
lines
.
Length
-
3
)
{
trainer_j
=
0
;
...
...
@@ -75,7 +77,7 @@ public class Move : MonoBehaviour
trainer_i
=
-
1
;
trainer_data1
=
new
float
[
bodyCount
*
jointCount
*
3
];
trainer_state
=
new
int
[
bodyCount
*
jointCount
];
Debug
.
Log
(
"초기화"
);
//
Debug.Log("초기화");
//Thread.Sleep(5000);
for
(
int
k
=
0
;
k
<
25
;
k
++)
{
...
...
@@ -103,6 +105,18 @@ public class Move : MonoBehaviour
//Debug.Log("메모라인 : " + trainer_j);
trainer_j
=
trainer_j
+
3
;
}
if
(
speed
<
5
)
{
trainer_j
-=
75
;
speed
++;
}
else
{
Debug
.
Log
(
"다음"
);
Debug
.
Log
(
trainer_j
);
speed
=
0
;
}
//Debug.Log("탈출!======================================================");
}
//lsy end
...
...
@@ -117,7 +131,7 @@ public class Move : MonoBehaviour
//lsy
trainer_state
=
new
int
[
bodyCount
*
jointCount
];
trainer_data1
=
new
float
[
bodyCount
*
jointCount
*
3
];
lines
=
File
.
ReadAllLines
(
@"Trainer_txt/
squar
t.txt"
);
lines
=
File
.
ReadAllLines
(
@"Trainer_txt/
runzi_lef
t.txt"
);
Debug
.
Log
(
"읽음"
);
//lsy end
...
...
Please
register
or
login
to post a comment