File tree 5 files changed +11
-17
lines changed
5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -78,3 +78,7 @@ omnisharp.json
78
78
79
79
# Rider
80
80
.idea /
81
+
82
+ Assets /Scripts /Portal /SwapSystem /SwapUtility_LEGACY.cs
83
+
84
+ Assets /Scripts /Portal /SwapSystem /SwapUtility_LEGACY.cs.meta
Original file line number Diff line number Diff line change @@ -30,15 +30,6 @@ public class KBMPlayer : PlayerBase
30
30
31
31
private PlayerInputAction . KBMPlayerActions playerActions ;
32
32
33
- protected override void Awake ( )
34
- {
35
- base . Awake ( ) ;
36
- var playerInputAction = new PlayerInputAction ( ) ;
37
- playerInputAction . Enable ( ) ;
38
- this . playerActions = playerInputAction . KBMPlayer ;
39
- grabJoint = GetComponent < TeleportableJoint > ( ) ;
40
- }
41
-
42
33
private void OnValidate ( )
43
34
{
44
35
var joint = GetComponent < ConfigurableJoint > ( ) ;
@@ -49,6 +40,10 @@ private void OnValidate()
49
40
50
41
private void Start ( )
51
42
{
43
+ var playerInputAction = new PlayerInputAction ( ) ;
44
+ playerInputAction . Enable ( ) ;
45
+ this . playerActions = playerInputAction . KBMPlayer ;
46
+ grabJoint = GetComponent < TeleportableJoint > ( ) ;
52
47
this . playerActions . Grab . started += _ => OnGrab ( ) ;
53
48
}
54
49
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public @PlayerInputAction()
107
107
""path"": ""<Mouse>/delta"",
108
108
""interactions"": """",
109
109
""processors"": """",
110
- ""groups"": ""KBM "",
110
+ ""groups"": """",
111
111
""action"": ""Look"",
112
112
""isComposite"": false,
113
113
""isPartOfComposite"": false
Original file line number Diff line number Diff line change 85
85
"path": "<Mouse>/delta",
86
86
"interactions": "",
87
87
"processors": "",
88
- "groups": "KBM ",
88
+ "groups": "",
89
89
"action": "Look",
90
90
"isComposite": false,
91
91
"isPartOfComposite": false
Original file line number Diff line number Diff line change @@ -31,14 +31,9 @@ public class VRPlayerHand: MonoBehaviourBase
31
31
private Grabbable holdingItem ;
32
32
private List < Grabbable > grabbableItems = new ( ) ;
33
33
34
-
35
- private void Awake ( )
36
- {
37
- GetComponentInChildren < Renderer > ( ) . material . color = Color . red ;
38
- }
39
-
40
34
private void Start ( )
41
35
{
36
+ GetComponentInChildren < Renderer > ( ) . material . color = Color . red ;
42
37
this . playerInput = FindObjectOfType < VRPlayerInput > ( ) ;
43
38
44
39
// Register hand to player input events
You can’t perform that action at this time.
0 commit comments