Commit b8e5215e authored by 16이상민's avatar 16이상민

Fixed an error not finding a constructor function.

Thanks to refactoring.
parent 540ef035
...@@ -13,10 +13,10 @@ public class Clap : MotionNote ...@@ -13,10 +13,10 @@ public class Clap : MotionNote
} }
} }
public Clap(string key, float timing) : base(timing) public Clap(string key, float start, float end = 0f) : this(start, end)
{ {
} }
public Clap(float timing) : base(timing) public Clap(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -18,7 +18,7 @@ public class Guard : MotionNote ...@@ -18,7 +18,7 @@ public class Guard : MotionNote
} }
} }
public Guard(string key, float timing) : this(timing) public Guard(string key, float start, float end = 0f) : this(start, end)
{ {
switch (key) switch (key)
{ {
...@@ -48,7 +48,7 @@ public class Guard : MotionNote ...@@ -48,7 +48,7 @@ public class Guard : MotionNote
break; break;
} }
} }
public Guard(float timing) : base(timing) public Guard(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -18,7 +18,7 @@ public class HandDown : MotionNote ...@@ -18,7 +18,7 @@ public class HandDown : MotionNote
} }
} }
public HandDown(string key, float timing) : this(timing) public HandDown(string key, float start, float end = 0f) : this(start, end)
{ {
switch (key) switch (key)
{ {
...@@ -39,7 +39,7 @@ public class HandDown : MotionNote ...@@ -39,7 +39,7 @@ public class HandDown : MotionNote
break; break;
} }
} }
public HandDown(float timing) : base(timing) public HandDown(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -18,7 +18,7 @@ public class HandUp : MotionNote ...@@ -18,7 +18,7 @@ public class HandUp : MotionNote
} }
} }
public HandUp(string key, float timing) : this(timing) public HandUp(string key, float start, float end = 0f) : this(start, end)
{ {
switch (key) switch (key)
{ {
...@@ -39,7 +39,7 @@ public class HandUp : MotionNote ...@@ -39,7 +39,7 @@ public class HandUp : MotionNote
break; break;
} }
} }
public HandUp(float timing) : base(timing) public HandUp(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -18,7 +18,7 @@ public class Headphone : MotionNote ...@@ -18,7 +18,7 @@ public class Headphone : MotionNote
} }
} }
public Headphone(string key, float timing) : this(timing) public Headphone(string key, float start, float end = 0f) : this(start, end)
{ {
switch (key) switch (key)
{ {
...@@ -39,9 +39,8 @@ public class Headphone : MotionNote ...@@ -39,9 +39,8 @@ public class Headphone : MotionNote
break; break;
} }
} }
public Headphone(float timing) : base(timing) public Headphone(float start, float end = 0f) : base(start, end)
{ { }
}
public override void Checkpoint() public override void Checkpoint()
{ {
......
...@@ -13,10 +13,10 @@ public class Jesus : MotionNote ...@@ -13,10 +13,10 @@ public class Jesus : MotionNote
} }
} }
public Jesus(string key, float timing) : this(timing) public Jesus(string key, float start, float end = 0f) : this(start, end)
{ {
} }
public Jesus(float timing) : base(timing) public Jesus(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -13,10 +13,10 @@ public class Jump : MotionNote ...@@ -13,10 +13,10 @@ public class Jump : MotionNote
} }
} }
public Jump(string key, float timing) : this(timing) public Jump(string key, float start, float end = 0f) : this(start, end)
{ {
} }
public Jump(float timing) : base(timing) public Jump(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -13,10 +13,10 @@ public class OnTheTable : MotionNote ...@@ -13,10 +13,10 @@ public class OnTheTable : MotionNote
} }
} }
public OnTheTable(string key, float timing) : this(timing) public OnTheTable(string key, float start, float end = 0f) : this(start, end)
{ {
} }
public OnTheTable(float timing) : base(timing) public OnTheTable(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -18,7 +18,7 @@ public class PushUp : MotionNote ...@@ -18,7 +18,7 @@ public class PushUp : MotionNote
} }
} }
public PushUp(string key, float timing) : this(timing) public PushUp(string key, float start, float end = 0f) : this(start, end)
{ {
switch (key) switch (key)
{ {
...@@ -42,7 +42,7 @@ public class PushUp : MotionNote ...@@ -42,7 +42,7 @@ public class PushUp : MotionNote
break; break;
} }
} }
public PushUp(float timing) : base(timing) public PushUp(float start, float end = 0f) : base(start, end)
{ {
} }
......
...@@ -304,7 +304,6 @@ namespace KinectModule ...@@ -304,7 +304,6 @@ namespace KinectModule
public class RealMultiSourceFrame : IMultiSourceFrame public class RealMultiSourceFrame : IMultiSourceFrame
{ {
MultiSourceFrame _SourceFrame;
RealColorFrame _ColorFrame; RealColorFrame _ColorFrame;
RealBodyIndexFrame _BodyIndexFrame; RealBodyIndexFrame _BodyIndexFrame;
RealDepthFrame _DepthFrame; RealDepthFrame _DepthFrame;
...@@ -321,7 +320,6 @@ namespace KinectModule ...@@ -321,7 +320,6 @@ namespace KinectModule
public RealMultiSourceFrame(MultiSourceFrame sourceFrame) public RealMultiSourceFrame(MultiSourceFrame sourceFrame)
{ {
_SourceFrame = sourceFrame;
_ColorFrame = new RealColorFrame(sourceFrame.ColorFrameReference.AcquireFrame()); _ColorFrame = new RealColorFrame(sourceFrame.ColorFrameReference.AcquireFrame());
_BodyIndexFrame = new RealBodyIndexFrame(sourceFrame.BodyIndexFrameReference.AcquireFrame()); _BodyIndexFrame = new RealBodyIndexFrame(sourceFrame.BodyIndexFrameReference.AcquireFrame());
_DepthFrame = new RealDepthFrame(sourceFrame.DepthFrameReference.AcquireFrame()); _DepthFrame = new RealDepthFrame(sourceFrame.DepthFrameReference.AcquireFrame());
......
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