Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingrub committed Dec 18, 2018
1 parent f9e5365 commit 716512d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/HandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public void OnFrame(object sender, FrameEventArgs args)
Instanciate.singleton.pinch(hand.PinchStrength);
Debug.Log("pinch");
}
if (-60 < roll && roll < 60 && handSpeed.z < - 500)
if (-60 < roll && roll < 60 && handSpeed.z < - 700)
{
timeSinceLastCall = System.DateTime.Now;
Debug.Log("Hand Up");
Instanciate.singleton.gravityOff();
} else if (-120 < roll && roll > 70 && handSpeed.z > 500)
} else if (-120 < roll && roll > 70 && handSpeed.z > 700)
{
timeSinceLastCall = System.DateTime.Now;
Debug.Log("Hand down");
Expand Down
3 changes: 1 addition & 2 deletions Assets/Instanciate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ float map(float val, float min, float high, float nMin, float nHigh)

void Start()
{
CubeData.globalColor = Color.red;
dsps = new List<FMOD.DSP>();
singleton = this;
playerState = FMODUnity.RuntimeManager.CreateInstance(PlayerStateEvent);
playerState.setTimelinePosition(100000);

lowlevelSystem = FMODUnity.RuntimeManager.LowlevelSystem;
if (!masterDSP.hasHandle())
{
Expand Down

0 comments on commit 716512d

Please sign in to comment.