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-19 04:42:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6136f18641be099468b817383ea0b5aa099ac979
6136f186
1 parent
ee6e2f06
last push
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
62 deletions
sourcecode/capstone/Assets/Scenes/humanoid.unity
sourcecode/capstone/Assets/Script/Move.cs
sourcecode/capstone/Assets/Scenes/humanoid.unity
View file @
6136f18
...
...
@@ -457,7 +457,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!224
&109009051
RectTransform
:
m_ObjectHideFlags
:
0
...
...
@@ -779,7 +779,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!224
&310358199
RectTransform
:
m_ObjectHideFlags
:
0
...
...
@@ -850,7 +850,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!224
&395084096
RectTransform
:
m_ObjectHideFlags
:
0
...
...
@@ -1662,7 +1662,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!224
&1089006721
RectTransform
:
m_ObjectHideFlags
:
0
...
...
@@ -2175,7 +2175,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!224
&1484596776
RectTransform
:
m_ObjectHideFlags
:
0
...
...
sourcecode/capstone/Assets/Script/Move.cs
View file @
6136f18
...
...
@@ -262,7 +262,7 @@ public class Move : MonoBehaviour
//lsy end
exercise
=
ClickExercise
.
selected_exercise
;
//ClickExercise에서 선택한 운동이 무엇인지 String으로 넘어옴.
exercise
=
"Squat"
;
Debug
.
Log
(
exercise
);
//Squat, SideHiKick, Lunge 에 따라서 Trainer움직이고, 사용자에게 instruction주기
if
(
exercise
==
"Squat"
)
...
...
@@ -654,39 +654,21 @@ public class Move : MonoBehaviour
{
if
(
workout_count
<
10
)
{
if
(
flag
==
0
)
if
(
lunge_flag_l
<
120
&&
ReadAngles
[
3
]
>=
91
&&
lunge_flag_l
>
ReadAngles
[
3
]
)
{
if
(
lunge_flag_l
<
120
&&
ReadAngles
[
3
]
>=
91
&&
lunge_flag_l
>
ReadAngles
[
3
])
{
great
=
""
;
//Great5.SetActive(false);
KneeDown6
.
SetActive
(
true
);
//무릎을 더 굽혀주세요.
flag
=
1
;
great
=
""
;
Great5
.
SetActive
(
false
);
KneeDown6
.
SetActive
(
true
);
//무릎을 더 굽혀주세요.
flag
=
1
;
}
else
if
(
ReadAngles
[
3
]
<
91
)
{
great
=
"GREAT!"
;
Great5
.
SetActive
(
true
);
//KneeDown6.SetActive(false);
flag
=
1
;
}
}
else
else
if
(
ReadAngles
[
3
]
<
91
)
{
great
=
"GREAT!"
;
Great5
.
SetActive
(
true
);
KneeDown6
.
SetActive
(
false
);
flag_timer
+=
Time
.
deltaTime
;
//Debug.Log(flag_timer);
if
(
flag_timer
>
5
)
{
flag
=
0
;
flag_timer
=
0
;
Debug
.
Log
(
"5초넘음"
);
Great5
.
SetActive
(
false
);
KneeDown6
.
SetActive
(
false
);
}
flag
=
1
;
}
...
...
@@ -704,40 +686,21 @@ public class Move : MonoBehaviour
}
else
{
if
(
flag
==
0
)
if
(
lunge_flag_r
<
120
&&
ReadAngles
[
4
]
>=
91
&&
lunge_flag_r
>
ReadAngles
[
4
]
)
{
if
(
lunge_flag_r
<
120
&&
ReadAngles
[
4
]
>=
91
&&
lunge_flag_r
>
ReadAngles
[
4
])
{
great
=
""
;
//Great5.SetActive(false);
KneeDown6
.
SetActive
(
true
);
//무릎을 더 굽혀주세요.
flag
=
1
;
great
=
""
;
Great5
.
SetActive
(
false
);
KneeDown6
.
SetActive
(
true
);
//무릎을 더 굽혀주세요.
}
else
if
(
ReadAngles
[
4
]
<
91
)
{
great
=
"GREAT!"
;
Great5
.
SetActive
(
true
);
//KneeDown6.SetActive(false);
flag
=
1
;
}
}
else
else
if
(
ReadAngles
[
4
]
<
91
)
{
great
=
"GREAT!"
;
Great5
.
SetActive
(
true
);
KneeDown6
.
SetActive
(
false
);
flag_timer
+=
Time
.
deltaTime
;
//Debug.Log(flag_timer);
if
(
flag_timer
>
5
)
{
flag
=
0
;
flag_timer
=
0
;
Debug
.
Log
(
"5초넘음"
);
Great5
.
SetActive
(
false
);
KneeDown6
.
SetActive
(
false
);
}
}
//////////////운동 횟수 카운트//////////////////
//오른쪽
...
...
Please
register
or
login
to post a comment