Commit 38747f67 authored by 16서원빈's avatar 16서원빈

Revert "모션노트 완료"

This reverts commit d618a691.

Revert to time before merge conflict cf75c447 and 969139ca.
parent 8c6ef7a6
...@@ -22,33 +22,13 @@ public class Clap : MotionNote ...@@ -22,33 +22,13 @@ public class Clap : MotionNote
public override void Checkpoint() public override void Checkpoint()
{ {
<<<<<<< HEAD
IsChecked = (InputManager.Instance.CurrentMotionState IsChecked = (InputManager.Instance.CurrentMotionState
& MotionState.CLAP_PREPARE) != 0; & MotionState.CLAP_PREPARE) != 0;
=======
var motion = InputManager.Instance.CurrentMotionState;
if ((motion & MotionState.CLAP_PREPARE) == 0)
return;
IsChecked = true;
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
} }
public override bool FinalJudgeAction() public override bool FinalJudgeAction()
{ {
<<<<<<< HEAD
return (InputManager.Instance.CurrentMotionState return (InputManager.Instance.CurrentMotionState
& MotionState.CLAP_DONE) != 0; & MotionState.CLAP_DONE) != 0;
=======
var motion = InputManager.Instance.CurrentMotionState;
if (IsChecked && (motion & MotionState.CLAP_DONE) != 0)
{
return true;
}
return false;
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
} }
} }
...@@ -7,51 +7,18 @@ public class Guard : MotionNote ...@@ -7,51 +7,18 @@ public class Guard : MotionNote
enum Hand { Both, Left, Right } enum Hand { Both, Left, Right }
Hand hand; Hand hand;
<<<<<<< HEAD
MotionState prepare, done; MotionState prepare, done;
private static Sprite image; private static Sprite image;
=======
private static Sprite imageB = LoadNewSprite("");
private static Sprite imageL = LoadNewSprite("");
private static Sprite imageR = LoadNewSprite("");
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
public override Sprite Image public override Sprite Image
{ {
get get
{ {
switch (hand) return image;
{
default:
case Hand.Both:
return imageB;
case Hand.Left:
return imageL;
case Hand.Right:
return imageR;
}
}
}
private bool isChecked = false;
public override bool IsChecked
{
get
{
return isChecked;
} }
} }
<<<<<<< HEAD
public Guard(string key, float timing) : this(timing) public Guard(string key, float timing) : this(timing)
=======
public Guard(string key, float timing) : this(key, timing, 0f)
{
}
public Guard(string key, float timing, float end = 0f) : this(timing, end)
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
{ {
switch (key) switch (key)
{ {
...@@ -85,11 +52,7 @@ public class Guard : MotionNote ...@@ -85,11 +52,7 @@ public class Guard : MotionNote
{ {
} }
<<<<<<< HEAD
public override void Checkpoint() public override void Checkpoint()
=======
public override IEnumerator Checkpoint(MotionNote obj)
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
{ {
IsChecked = (InputManager.Instance.CurrentMotionState IsChecked = (InputManager.Instance.CurrentMotionState
& prepare) != 0; & prepare) != 0;
...@@ -97,11 +60,7 @@ public class Guard : MotionNote ...@@ -97,11 +60,7 @@ public class Guard : MotionNote
public override bool FinalJudgeAction() public override bool FinalJudgeAction()
{ {
<<<<<<< HEAD
return (InputManager.Instance.CurrentMotionState return (InputManager.Instance.CurrentMotionState
& done) != 0; & done) != 0;
=======
return false;
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
} }
} }
...@@ -20,46 +20,10 @@ public class Jump : MotionNote ...@@ -20,46 +20,10 @@ public class Jump : MotionNote
{ {
} }
<<<<<<< HEAD
public override void Checkpoint() public override void Checkpoint()
{ {
IsChecked = (InputManager.Instance.CurrentMotionState IsChecked = (InputManager.Instance.CurrentMotionState
& MotionState.JUMP_PREPARE) != 0; & MotionState.JUMP_PREPARE) != 0;
=======
private bool isChecked = false;
public override bool IsChecked
{
get
{
return isChecked;
}
}
private float spineHeight = 0f;
private int downCount;
public override IEnumerator Checkpoint(MotionNote obj)
{
float currentSpineHeight
= InputManager.Instance
.Joints[Windows.Kinect.JointType.SpineBase].Position.Y;
while (spineHeight == 0f || downCount < 10 && currentSpineHeight <= spineHeight - 0.1f)
{
spineHeight = currentSpineHeight;
currentSpineHeight
= InputManager.Instance
.Joints[Windows.Kinect.JointType.SpineBase].Position.Y;
downCount++;
yield return false;
}
if (downCount >= 10)
Activated = true;
yield break;
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
} }
public override bool FinalJudgeAction() public override bool FinalJudgeAction()
......
...@@ -46,20 +46,7 @@ public class PushUp : MotionNote ...@@ -46,20 +46,7 @@ public class PushUp : MotionNote
{ {
} }
<<<<<<< HEAD
public override void Checkpoint() public override void Checkpoint()
=======
private bool isChecked = false;
public override bool IsChecked
{
get
{
return isChecked;
}
}
public override IEnumerator Checkpoint(MotionNote obj)
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
{ {
IsChecked = (InputManager.Instance.CurrentMotionState IsChecked = (InputManager.Instance.CurrentMotionState
& prepare) != 0; & prepare) != 0;
......
...@@ -24,7 +24,6 @@ public abstract class MotionNote : Note ...@@ -24,7 +24,6 @@ public abstract class MotionNote : Note
= new Dictionary<string, Type> = new Dictionary<string, Type>
{ {
{ "CP", typeof(Clap) }, { "CP", typeof(Clap) },
<<<<<<< HEAD
{ "JP", typeof(Jump) }, { "JP", typeof(Jump) },
...@@ -56,8 +55,6 @@ public abstract class MotionNote : Note ...@@ -56,8 +55,6 @@ public abstract class MotionNote : Note
{ "RH", typeof(Headphone) }, { "RH", typeof(Headphone) },
{ "OT", typeof(OnTheTable) }, { "OT", typeof(OnTheTable) },
=======
>>>>>>> 264d73d3155335b370d118cddd1ace963868a28c
}; };
protected static Sprite LoadNewSprite(string FilePath, float PixelsPerUnit = 100.0f) protected static Sprite LoadNewSprite(string FilePath, float PixelsPerUnit = 100.0f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment