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-18 22:03:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80d69a148310810fb46f5675f6a5ceee089ab4e8
80d69a14
1 parent
f32e7440
count
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
sourcecode/capstone/Assets/Script/Move.cs
sourcecode/capstone/Assets/Script/Move.cs
View file @
80d69a1
...
...
@@ -39,6 +39,7 @@ public class Move : MonoBehaviour
public
float
[]
trainer_data1
;
public
int
[]
trainer_state
;
public
int
speed
=
0
;
public
int
trainer_count
=
0
;
//lsy end
public
Text
AngleLeftKnee
;
...
...
@@ -73,6 +74,8 @@ public class Move : MonoBehaviour
//Thread.Sleep(50);
if
(
trainer_j
>=
lines
.
Length
-
3
)
{
trainer_count
++;
Debug
.
Log
(
"카운트 : "
+
trainer_count
);
trainer_j
=
0
;
return
;
}
...
...
@@ -114,8 +117,8 @@ public class Move : MonoBehaviour
}
else
{
Debug
.
Log
(
"다음"
);
Debug
.
Log
(
trainer_j
);
//
Debug.Log("다음");
//
Debug.Log(trainer_j);
speed
=
0
;
}
...
...
@@ -176,7 +179,8 @@ public class Move : MonoBehaviour
Debug
.
Log
(
"읽음"
);
}
else
{
lines
=
File
.
ReadAllLines
(
@"Trainer_txt/squart.txt"
);
lines
=
File
.
ReadAllLines
(
@"Trainer_txt/leg_left.txt"
);
Debug
.
Log
(
"읽음"
);
}
...
...
@@ -229,7 +233,7 @@ public class Move : MonoBehaviour
{
timer
+=
Time
.
deltaTime
;
Debug
.
Log
(
"Timer: "
+
timer
);
//
Debug.Log("Timer: " + timer);
if
(
timer
<
1
)
{
count3
.
SetActive
(
true
);
...
...
Please
register
or
login
to post a comment