Skip to content

Commit c969bc3

Browse files
removed getchild and changed to local positioning.
1 parent 51bbb38 commit c969bc3

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

Assets/fidgetSTUFF/HandControlMobile.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ void UpdateHands(){
7676
currentLeftHand = Instantiate (leftHandPrefab, this.transform);
7777
}
7878

79-
currentLeftHand.transform.GetChild(1).transform.position = position1;
80-
currentLeftHand.transform.GetChild(1).transform.rotation = rotation1;
79+
currentLeftHand.transform.transform.localPosition = position1;
80+
currentLeftHand.transform.transform.localRotation = rotation1;
8181

8282
} else if (sArray [0] == "r") {
8383
rightHandExists = true;
8484
if (currentRightHand == null) {
8585
currentRightHand = Instantiate (rightHandPrefab, this.transform);
8686
}
8787

88-
currentRightHand.transform.GetChild(1).transform.position = position1;
89-
currentRightHand.transform.GetChild(1).transform.rotation = rotation1;
88+
currentRightHand.transform.transform.localPosition = position1;
89+
currentRightHand.transform.transform.localRotation = rotation1;
9090
}
9191
}
9292

@@ -107,17 +107,17 @@ void UpdateHands(){
107107
currentLeftHand = Instantiate (leftHandPrefab, this.transform);
108108
}
109109

110-
currentLeftHand.transform.GetChild(1).transform.position = position2;
111-
currentLeftHand.transform.GetChild(1).transform.rotation = rotation2;
110+
currentLeftHand.transform.transform.localPosition = position2;
111+
currentLeftHand.transform.transform.localRotation = rotation2;
112112

113113
} else if (sArray [8] == "r") {
114114
rightHandExists = true;
115115
if (currentRightHand == null) {
116116
currentRightHand = Instantiate (rightHandPrefab, this.transform);
117117
}
118118

119-
currentRightHand.transform.GetChild(1).transform.position = position2;
120-
currentRightHand.transform.GetChild(1).transform.rotation = rotation2;
119+
currentRightHand.transform.transform.localPosition = position2;
120+
currentRightHand.transform.transform.localRotation = rotation2;
121121
}
122122
}
123123

DesktopServer.userprefs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Properties StartupItem="Assembly-CSharp.csproj">
22
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="Unity.Instance.Unity Editor" />
3-
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/HandControl.cs">
3+
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/fidgetSTUFF/HandControlMobile.cs">
44
<Files>
5-
<File FileName="Assets/HandControl.cs" Line="29" Column="38" />
5+
<File FileName="Assets/fidgetSTUFF/HandControlMobile.cs" Line="79" Column="79" />
66
</Files>
77
</MonoDevelop.Ide.Workbench>
88
<MonoDevelop.Ide.DebuggingService.Breakpoints>

Library/CurrentLayout.dwlt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ MonoBehaviour:
1313
m_EditorClassIdentifier:
1414
m_PixelRect:
1515
serializedVersion: 2
16-
x: 30
16+
x: 47
1717
y: 45
1818
width: 1357
1919
height: 850
2020
m_ShowMode: 4
2121
m_Title:
2222
m_RootView: {fileID: 6}
23-
m_MinSize: {x: 950, y: 300}
23+
m_MinSize: {x: 950, y: 542}
2424
m_MaxSize: {x: 10000, y: 10000}
2525
--- !u!114 &2
2626
MonoBehaviour:
@@ -45,7 +45,7 @@ MonoBehaviour:
4545
m_MinSize: {x: 683, y: 492}
4646
m_MaxSize: {x: 14004, y: 14042}
4747
vertical: 0
48-
controlID: 69
48+
controlID: 36
4949
--- !u!114 &3
5050
MonoBehaviour:
5151
m_ObjectHideFlags: 52
@@ -211,7 +211,7 @@ MonoBehaviour:
211211
m_MinSize: {x: 406, y: 492}
212212
m_MaxSize: {x: 10002, y: 14042}
213213
vertical: 1
214-
controlID: 70
214+
controlID: 37
215215
--- !u!114 &10
216216
MonoBehaviour:
217217
m_ObjectHideFlags: 52
@@ -235,7 +235,7 @@ MonoBehaviour:
235235
m_MinSize: {x: 406, y: 221}
236236
m_MaxSize: {x: 8006, y: 4021}
237237
vertical: 0
238-
controlID: 23
238+
controlID: 38
239239
--- !u!114 &11
240240
MonoBehaviour:
241241
m_ObjectHideFlags: 52
@@ -457,7 +457,7 @@ MonoBehaviour:
457457
m_DepthBufferBits: 0
458458
m_Pos:
459459
serializedVersion: 2
460-
x: 30
460+
x: 47
461461
y: 600
462462
width: 957
463463
height: 273
@@ -589,7 +589,7 @@ MonoBehaviour:
589589
m_DepthBufferBits: 0
590590
m_Pos:
591591
serializedVersion: 2
592-
x: 991
592+
x: 1008
593593
y: 94
594594
width: 396
595595
height: 779
@@ -622,7 +622,7 @@ MonoBehaviour:
622622
m_DepthBufferBits: 0
623623
m_Pos:
624624
serializedVersion: 2
625-
x: 30
625+
x: 47
626626
y: 94
627627
width: 285
628628
height: 485
@@ -749,7 +749,7 @@ MonoBehaviour:
749749
m_DepthBufferBits: 32
750750
m_Pos:
751751
serializedVersion: 2
752-
x: 319
752+
x: 336
753753
y: 94
754754
width: 668
755755
height: 485
0 Bytes
Binary file not shown.
-16 Bytes
Binary file not shown.

Library/assetDatabase3

0 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.

obj/Debug/Assembly-CSharp.dll

0 Bytes
Binary file not shown.

obj/Debug/Assembly-CSharp.dll.mdb

-16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)