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:01:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
07c2a7abe49a28b95c3c9d178fb0122ceb8794ca
07c2a7ab
1 parent
49c67124
Final Scene follow 움직임, 포즈 인식 구현
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
164 additions
and
7 deletions
sourcecode/capstone/Assets/Scenes/Final.unity
sourcecode/capstone/Assets/Scenes/Result.unity
sourcecode/capstone/Assets/Script/Final.cs
sourcecode/capstone/Assets/Script/Final.cs.meta
sourcecode/capstone/Assets/Script/Move.cs
sourcecode/capstone/Assets/Script/Result.cs
sourcecode/capstone/Assets/Script/Title.cs
sourcecode/capstone/Assets/Scenes/Final.unity
View file @
07c2a7a
...
...
@@ -708,7 +708,7 @@ MonoBehaviour:
m_OnClick
:
m_PersistentCalls
:
m_Calls
:
-
m_Target
:
{
fileID
:
1816730611
}
-
m_Target
:
{
fileID
:
0
}
m_MethodName
:
LoadGame
m_Mode
:
1
m_Arguments
:
...
...
@@ -1079,7 +1079,7 @@ MonoBehaviour:
m_OnClick
:
m_PersistentCalls
:
m_Calls
:
-
m_Target
:
{
fileID
:
1816730611
}
-
m_Target
:
{
fileID
:
0
}
m_MethodName
:
LoadGame
m_Mode
:
1
m_Arguments
:
...
...
@@ -1176,8 +1176,8 @@ GameObject:
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
1816730612
}
-
component
:
{
fileID
:
1816730611
}
-
component
:
{
fileID
:
1816730610
}
-
component
:
{
fileID
:
1816730611
}
m_Layer
:
0
m_Name
:
Game Manager
m_TagString
:
Untagged
...
...
@@ -1244,10 +1244,9 @@ MonoBehaviour:
m_GameObject
:
{
fileID
:
1816730609
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
148ae4c33b84b7241ab4a900f8ab1e9c
,
type
:
3
}
m_Script
:
{
fileID
:
11500000
,
guid
:
3af9c1c60f4b821408457bded93ec384
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
SceneToLoad
:
Start
---
!u!4
&1816730612
Transform
:
m_ObjectHideFlags
:
0
...
...
sourcecode/capstone/Assets/Scenes/Result.unity
View file @
07c2a7a
...
...
@@ -798,6 +798,7 @@ RectTransform:
-
{
fileID
:
553455690
}
-
{
fileID
:
338496205
}
-
{
fileID
:
45627341
}
-
{
fileID
:
1668275442
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
...
...
@@ -898,6 +899,84 @@ Transform:
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
6
m_LocalEulerAnglesHint
:
{
x
:
5
,
y
:
-30
,
z
:
0
}
---
!u!1
&1668275441
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
1668275442
}
-
component
:
{
fileID
:
1668275444
}
-
component
:
{
fileID
:
1668275443
}
m_Layer
:
5
m_Name
:
Num_Of_Great
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!224
&1668275442
RectTransform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1668275441
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
2
,
y
:
2
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
1101068127
}
m_RootOrder
:
3
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0.5
,
y
:
0.5
}
m_AnchorMax
:
{
x
:
0.5
,
y
:
0.5
}
m_AnchoredPosition
:
{
x
:
450
,
y
:
50
}
m_SizeDelta
:
{
x
:
200
,
y
:
100
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!114
&1668275443
MonoBehaviour
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1668275441
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
5f7201a12d95ffc409449d95f23cf332
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0.9176471
,
g
:
0.31764707
,
b
:
0.46274513
,
a
:
1
}
m_RaycastTarget
:
1
m_Maskable
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
25
m_FontStyle
:
3
m_BestFit
:
0
m_MinSize
:
1
m_MaxSize
:
50
m_Alignment
:
0
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
---
!u!222
&1668275444
CanvasRenderer
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1668275441
}
m_CullTransparentMesh
:
0
---
!u!1
&1672269659
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -984,3 +1063,4 @@ MonoBehaviour:
m_Script
:
{
fileID
:
11500000
,
guid
:
60e42eccbe56e254e880952a601c780a
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
NumOfGreat
:
{
fileID
:
1668275443
}
...
...
sourcecode/capstone/Assets/Script/Final.cs
0 → 100644
View file @
07c2a7a
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
public
class
Final
:
MonoBehaviour
{
GameObject
follow
;
//커서
Vector3
pos
;
private
float
timer1
;
private
float
timer2
;
public
string
SceneToLoad
;
// Start is called before the first frame update
void
Start
()
{
follow
=
GameObject
.
Find
(
"follow"
).
gameObject
;
pos
=
follow
.
transform
.
position
;
timer1
=
0
;
timer2
=
0
;
}
// Update is called once per frame
void
Update
()
{
pos
=
follow
.
transform
.
position
;
Debug
.
Log
(
pos
);
if
(
pos
.
x
>=
290
&&
pos
.
x
<=
725
&&
pos
.
y
>=
265
&&
pos
.
y
<=
315
&&
pos
.
z
==
200
)
{
timer1
+=
Time
.
deltaTime
;
if
(
timer1
>
2.5
)
{
Debug
.
Log
(
"Clicked"
);
SceneManager
.
LoadScene
(
SceneToLoad
);
}
}
if
(
pos
.
x
>=
290
&&
pos
.
x
<=
725
&&
pos
.
y
>=
95
&&
pos
.
y
<=
158
&&
pos
.
z
==
200
)
{
timer2
+=
Time
.
deltaTime
;
if
(
timer2
>
2.5
)
{
Debug
.
Log
(
"Clicked"
);
SceneManager
.
LoadScene
(
SceneToLoad
);
}
}
}
}
sourcecode/capstone/Assets/Script/Final.cs.meta
0 → 100644
View file @
07c2a7a
fileFormatVersion: 2
guid: 3af9c1c60f4b821408457bded93ec384
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
sourcecode/capstone/Assets/Script/Move.cs
View file @
07c2a7a
...
...
@@ -60,7 +60,7 @@ public class Move : MonoBehaviour
public
Text
Great
;
public
Text
Trainner_count
,
Trainee_count
;
string
trainercnt
,
traineecnt
;
public
static
string
trainercnt
,
traineecnt
;
string
hipbal
,
leftkneewarning
,
rightkneewarning
,
leftsidehighkick
,
rightsidehighkick
;
string
spinestraight
,
pullhipback
,
great
;
...
...
sourcecode/capstone/Assets/Script/Result.cs
View file @
07c2a7a
...
...
@@ -2,20 +2,28 @@
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
using
UnityEngine.UI
;
public
class
Result
:
MonoBehaviour
{
private
float
timer
;
string
num
;
public
Text
NumOfGreat
;
// Start is called before the first frame update
void
Start
()
{
timer
=
0
;
num
=
Move
.
traineecnt
;
NumOfGreat
.
text
=
""
;
}
// Update is called once per frame
void
Update
()
{
NumOfGreat
.
text
=
num
;
timer
+=
Time
.
deltaTime
;
if
(
timer
>
5
)
{
...
...
sourcecode/capstone/Assets/Script/Title.cs
View file @
07c2a7a
...
...
@@ -29,7 +29,7 @@ public class Title : MonoBehaviour
Debug
.
Log
(
"Update"
);
pos
=
follow
.
transform
.
position
;
Debug
.
Log
(
pos
);
//
Debug.Log(pos);
if
(
pos
.
x
>=
360
&&
pos
.
x
<=
600
&&
pos
.
y
>=
180
&&
pos
.
y
<=
200
&&
pos
.
z
==
200
)
{
...
...
Please
register
or
login
to post a comment