Showing
2 changed files
with
10 additions
and
47 deletions
... | @@ -457,7 +457,7 @@ GameObject: | ... | @@ -457,7 +457,7 @@ GameObject: |
457 | m_Icon: {fileID: 0} | 457 | m_Icon: {fileID: 0} |
458 | m_NavMeshLayer: 0 | 458 | m_NavMeshLayer: 0 |
459 | m_StaticEditorFlags: 0 | 459 | m_StaticEditorFlags: 0 |
460 | - m_IsActive: 1 | 460 | + m_IsActive: 0 |
461 | --- !u!224 &109009051 | 461 | --- !u!224 &109009051 |
462 | RectTransform: | 462 | RectTransform: |
463 | m_ObjectHideFlags: 0 | 463 | m_ObjectHideFlags: 0 |
... | @@ -779,7 +779,7 @@ GameObject: | ... | @@ -779,7 +779,7 @@ GameObject: |
779 | m_Icon: {fileID: 0} | 779 | m_Icon: {fileID: 0} |
780 | m_NavMeshLayer: 0 | 780 | m_NavMeshLayer: 0 |
781 | m_StaticEditorFlags: 0 | 781 | m_StaticEditorFlags: 0 |
782 | - m_IsActive: 1 | 782 | + m_IsActive: 0 |
783 | --- !u!224 &310358199 | 783 | --- !u!224 &310358199 |
784 | RectTransform: | 784 | RectTransform: |
785 | m_ObjectHideFlags: 0 | 785 | m_ObjectHideFlags: 0 |
... | @@ -850,7 +850,7 @@ GameObject: | ... | @@ -850,7 +850,7 @@ GameObject: |
850 | m_Icon: {fileID: 0} | 850 | m_Icon: {fileID: 0} |
851 | m_NavMeshLayer: 0 | 851 | m_NavMeshLayer: 0 |
852 | m_StaticEditorFlags: 0 | 852 | m_StaticEditorFlags: 0 |
853 | - m_IsActive: 1 | 853 | + m_IsActive: 0 |
854 | --- !u!224 &395084096 | 854 | --- !u!224 &395084096 |
855 | RectTransform: | 855 | RectTransform: |
856 | m_ObjectHideFlags: 0 | 856 | m_ObjectHideFlags: 0 |
... | @@ -1662,7 +1662,7 @@ GameObject: | ... | @@ -1662,7 +1662,7 @@ GameObject: |
1662 | m_Icon: {fileID: 0} | 1662 | m_Icon: {fileID: 0} |
1663 | m_NavMeshLayer: 0 | 1663 | m_NavMeshLayer: 0 |
1664 | m_StaticEditorFlags: 0 | 1664 | m_StaticEditorFlags: 0 |
1665 | - m_IsActive: 1 | 1665 | + m_IsActive: 0 |
1666 | --- !u!224 &1089006721 | 1666 | --- !u!224 &1089006721 |
1667 | RectTransform: | 1667 | RectTransform: |
1668 | m_ObjectHideFlags: 0 | 1668 | m_ObjectHideFlags: 0 |
... | @@ -2175,7 +2175,7 @@ GameObject: | ... | @@ -2175,7 +2175,7 @@ GameObject: |
2175 | m_Icon: {fileID: 0} | 2175 | m_Icon: {fileID: 0} |
2176 | m_NavMeshLayer: 0 | 2176 | m_NavMeshLayer: 0 |
2177 | m_StaticEditorFlags: 0 | 2177 | m_StaticEditorFlags: 0 |
2178 | - m_IsActive: 1 | 2178 | + m_IsActive: 0 |
2179 | --- !u!224 &1484596776 | 2179 | --- !u!224 &1484596776 |
2180 | RectTransform: | 2180 | RectTransform: |
2181 | m_ObjectHideFlags: 0 | 2181 | m_ObjectHideFlags: 0 | ... | ... |
... | @@ -262,7 +262,7 @@ public class Move : MonoBehaviour | ... | @@ -262,7 +262,7 @@ public class Move : MonoBehaviour |
262 | //lsy end | 262 | //lsy end |
263 | 263 | ||
264 | exercise = ClickExercise.selected_exercise; //ClickExercise에서 선택한 운동이 무엇인지 String으로 넘어옴. | 264 | exercise = ClickExercise.selected_exercise; //ClickExercise에서 선택한 운동이 무엇인지 String으로 넘어옴. |
265 | - exercise = "Squat"; | 265 | + |
266 | Debug.Log(exercise); //Squat, SideHiKick, Lunge 에 따라서 Trainer움직이고, 사용자에게 instruction주기 | 266 | Debug.Log(exercise); //Squat, SideHiKick, Lunge 에 따라서 Trainer움직이고, 사용자에게 instruction주기 |
267 | 267 | ||
268 | if (exercise == "Squat") | 268 | if (exercise == "Squat") |
... | @@ -654,12 +654,10 @@ public class Move : MonoBehaviour | ... | @@ -654,12 +654,10 @@ public class Move : MonoBehaviour |
654 | { | 654 | { |
655 | if (workout_count < 10) | 655 | if (workout_count < 10) |
656 | { | 656 | { |
657 | - if (flag == 0) | ||
658 | - { | ||
659 | if (lunge_flag_l < 120 && ReadAngles[3] >= 91 && lunge_flag_l > ReadAngles[3]) | 657 | if (lunge_flag_l < 120 && ReadAngles[3] >= 91 && lunge_flag_l > ReadAngles[3]) |
660 | { | 658 | { |
661 | great = ""; | 659 | great = ""; |
662 | - //Great5.SetActive(false); | 660 | + Great5.SetActive(false); |
663 | KneeDown6.SetActive(true); //무릎을 더 굽혀주세요. | 661 | KneeDown6.SetActive(true); //무릎을 더 굽혀주세요. |
664 | flag = 1; | 662 | flag = 1; |
665 | 663 | ||
... | @@ -668,26 +666,10 @@ public class Move : MonoBehaviour | ... | @@ -668,26 +666,10 @@ public class Move : MonoBehaviour |
668 | { | 666 | { |
669 | great = "GREAT!"; | 667 | great = "GREAT!"; |
670 | Great5.SetActive(true); | 668 | Great5.SetActive(true); |
671 | - //KneeDown6.SetActive(false); | 669 | + KneeDown6.SetActive(false); |
672 | 670 | ||
673 | flag = 1; | 671 | flag = 1; |
674 | } | 672 | } |
675 | - } | ||
676 | - else | ||
677 | - { | ||
678 | - | ||
679 | - flag_timer += Time.deltaTime; | ||
680 | - //Debug.Log(flag_timer); | ||
681 | - if (flag_timer > 5) | ||
682 | - { | ||
683 | - flag = 0; | ||
684 | - flag_timer = 0; | ||
685 | - Debug.Log("5초넘음"); | ||
686 | - | ||
687 | - Great5.SetActive(false); | ||
688 | - KneeDown6.SetActive(false); | ||
689 | - } | ||
690 | - } | ||
691 | 673 | ||
692 | 674 | ||
693 | //////////////운동 횟수 카운트////////////////// | 675 | //////////////운동 횟수 카운트////////////////// |
... | @@ -704,40 +686,21 @@ public class Move : MonoBehaviour | ... | @@ -704,40 +686,21 @@ public class Move : MonoBehaviour |
704 | } | 686 | } |
705 | else | 687 | else |
706 | { | 688 | { |
707 | - if (flag == 0) | ||
708 | - { | ||
709 | if (lunge_flag_r < 120 && ReadAngles[4] >= 91 && lunge_flag_r > ReadAngles[4]) | 689 | if (lunge_flag_r < 120 && ReadAngles[4] >= 91 && lunge_flag_r > ReadAngles[4]) |
710 | { | 690 | { |
711 | great = ""; | 691 | great = ""; |
712 | - //Great5.SetActive(false); | 692 | + Great5.SetActive(false); |
713 | KneeDown6.SetActive(true); //무릎을 더 굽혀주세요. | 693 | KneeDown6.SetActive(true); //무릎을 더 굽혀주세요. |
714 | - flag = 1; | ||
715 | 694 | ||
716 | } | 695 | } |
717 | else if (ReadAngles[4] < 91) | 696 | else if (ReadAngles[4] < 91) |
718 | { | 697 | { |
719 | great = "GREAT!"; | 698 | great = "GREAT!"; |
720 | Great5.SetActive(true); | 699 | Great5.SetActive(true); |
721 | - //KneeDown6.SetActive(false); | 700 | + KneeDown6.SetActive(false); |
722 | 701 | ||
723 | - flag = 1; | ||
724 | } | 702 | } |
725 | - } | ||
726 | - else | ||
727 | - { | ||
728 | - | ||
729 | - flag_timer += Time.deltaTime; | ||
730 | - //Debug.Log(flag_timer); | ||
731 | - if (flag_timer > 5) | ||
732 | - { | ||
733 | - flag = 0; | ||
734 | - flag_timer = 0; | ||
735 | - Debug.Log("5초넘음"); | ||
736 | 703 | ||
737 | - Great5.SetActive(false); | ||
738 | - KneeDown6.SetActive(false); | ||
739 | - } | ||
740 | - } | ||
741 | 704 | ||
742 | //////////////운동 횟수 카운트////////////////// | 705 | //////////////운동 횟수 카운트////////////////// |
743 | //오른쪽 | 706 | //오른쪽 | ... | ... |
-
Please register or login to post a comment