고다경

Final Scene follow 움직임, 포즈 인식 구현

......@@ -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
......
......@@ -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}
......
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);
}
}
}
}
fileFormatVersion: 2
guid: 3af9c1c60f4b821408457bded93ec384
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -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;
......
......@@ -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)
{
......
......@@ -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) {
......