Browse Source

delete unused code

Kenkart 2 years ago
parent
commit
b4fe9356ee
2 changed files with 0 additions and 29 deletions
  1. 0 1
      Assets/Scripts/PlayerReplay.cs
  2. 0 28
      Assets/Scripts/ViveInput.cs

+ 0 - 1
Assets/Scripts/PlayerReplay.cs

@@ -299,7 +299,6 @@ public class PlayerReplay : MonoBehaviour
                 bc.endStepsPressed = false;
             }
 
-            // TODO: maybe need to check if body is null or not (after 6 seconds body is destroyed, destroy a destroyed gameobject error?)
             Destroy(body);
 
             // Wait for input

+ 0 - 28
Assets/Scripts/ViveInput.cs

@@ -8,12 +8,9 @@ public class ViveInput : MonoBehaviour
     public PlayerReplay playerReplay;
     public BodySourceView bsv;
 
-    public SteamVR_Action_Vibration hapticAction;
-
     private SteamVR_Action_Boolean grabPinch;
     private SteamVR_Action_Boolean grabGrib;
     private SteamVR_Action_Boolean teleport;
-    //private SteamVR_Action_Vector2 trackpad;
 
     private bool isRecording;
     private float recordingTime;
@@ -88,31 +85,6 @@ public class ViveInput : MonoBehaviour
         {
             SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.RightFoot].Execute(0, 1, 10, 1);
         }
-        if (Input.GetKeyDown(KeyCode.T))
-        {
-            SteamVR_Action_Vibration[] actions = SteamVR_Input.actionsVibration;
-            actions[0].Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightFoot);
-            Debug.Log("debug: " + actions.Length);
-        }
-
-        if (Input.GetKeyDown(KeyCode.A))
-        {
-            hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.LeftHand);
-        }
-        if (Input.GetKeyDown(KeyCode.S))
-        {
-            hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightHand);
-        }
-        if (Input.GetKeyDown(KeyCode.D))
-        {
-            hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.LeftFoot);
-        }
-        if (Input.GetKeyDown(KeyCode.F))
-        {
-            hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightFoot);
-        }
-
-
     }
 
     public static IEnumerator WaitForControllerPress()