|
@@ -1578,6 +1578,39 @@ public class Player : Regist , IPointerClickHandler
|
|
|
|
|
|
public void ResetDepth()
|
|
|
{
|
|
|
+ UAC.transform.SetLZ(0.7f);
|
|
|
+ SetSlotLocalZ(WingSlot, 0.00003f);
|
|
|
+ SetSlotLocalZ(EyeSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(TopSlot, -0.00003f);
|
|
|
+ SetSlotLocalZ(MouseSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(HeadWearSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(LeftShoeSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(RightShoeSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(LeftLegSlot, 0);
|
|
|
+ SetSlotLocalZ(RightLegSlot, 0);
|
|
|
+ SetSlotLocalZ(NeckSlot, 0.00001f);
|
|
|
+ SetSlotLocalZ(LeftHandSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(RightHandSlot, -0.00001f);
|
|
|
+ SetSlotLocalZ(LeftShortSleeveSlot, -0.000015f);
|
|
|
+ SetSlotLocalZ(RightShortSleeveSlot, -0.000015f);
|
|
|
+
|
|
|
+ SetSlotLocalZ(HeadSlot, 0);
|
|
|
+ if (HeadSlot.UnityTransform != null && HeadSlot.UnityTransform.childCount > 1)
|
|
|
+ {
|
|
|
+ HeadSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
+ HeadSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
+ }
|
|
|
+
|
|
|
+ SetSlotLocalZ(DressSlot, -0.00002f);
|
|
|
+ if (DressSlot.UnityTransform != null && DressSlot.UnityTransform.childCount > 1)
|
|
|
+ {
|
|
|
+ DressSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
+ DressSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
+ }
|
|
|
+
|
|
|
+ LeftLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
+ RightLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
+
|
|
|
if (IsDisplayInUGUI)
|
|
|
{
|
|
|
SetSlotAsFirstChild(TopSlot);
|
|
@@ -1599,95 +1632,6 @@ public class Player : Regist , IPointerClickHandler
|
|
|
SetSlotAsFirstChild(NeckSlot);
|
|
|
SetSlotAsFirstChild(WingSlot);
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- //UAC.transform.SetLZ(2.5f);
|
|
|
- UAC.transform.SetLZ(0.7f);
|
|
|
- SetSlotLocalZ(WingSlot, 0.00003f);
|
|
|
- SetSlotLocalZ(EyeSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(TopSlot, -0.00003f);
|
|
|
- SetSlotLocalZ(MouseSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(HeadWearSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(LeftShoeSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(RightShoeSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(LeftLegSlot, 0);
|
|
|
- SetSlotLocalZ(RightLegSlot, 0);
|
|
|
- SetSlotLocalZ(NeckSlot, 0.00001f);
|
|
|
- SetSlotLocalZ(LeftHandSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(RightHandSlot, -0.00001f);
|
|
|
- SetSlotLocalZ(LeftShortSleeveSlot, -0.000015f);
|
|
|
- SetSlotLocalZ(RightShortSleeveSlot, -0.000015f);
|
|
|
-
|
|
|
- SetSlotLocalZ(HeadSlot, 0);
|
|
|
- if (HeadSlot.UnityTransform != null && HeadSlot.UnityTransform.childCount > 1)
|
|
|
- {
|
|
|
- HeadSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
- HeadSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
- }
|
|
|
-
|
|
|
- SetSlotLocalZ(DressSlot, -0.00002f);
|
|
|
- if (DressSlot.UnityTransform != null && DressSlot.UnityTransform.childCount > 1)
|
|
|
- {
|
|
|
- DressSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
- DressSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
- }
|
|
|
-
|
|
|
- LeftLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
- RightLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
-
|
|
|
- //UAC.transform.SetLZ(2.5f);
|
|
|
-
|
|
|
- //WingSlot.UnityTransform.SetLZ(0);
|
|
|
- //EyeSlot.UnityTransform.SetLZ(0);
|
|
|
- //TopSlot.UnityTransform.SetLZ(0);
|
|
|
- //MouseSlot.UnityTransform.SetLZ(0);
|
|
|
- //HeadWearSlot.UnityTransform.SetLZ(0);
|
|
|
- //LeftShoeSlot.UnityTransform.SetLZ(0);
|
|
|
- //RightShoeSlot.UnityTransform.SetLZ(0);
|
|
|
- //LeftLegSlot.UnityTransform.SetLZ(0);
|
|
|
- //RightLegSlot.UnityTransform.SetLZ(0);
|
|
|
- //NeckSlot.UnityTransform.SetLZ(0);
|
|
|
- //LeftHandSlot.UnityTransform.SetLZ(0);
|
|
|
- //RightHandSlot.UnityTransform.SetLZ(0);
|
|
|
- //LeftShortSleeveSlot.UnityTransform.SetLZ(0);
|
|
|
- //RightShortSleeveSlot.UnityTransform.SetLZ(0);
|
|
|
-
|
|
|
- //WingSlot.SetLZ(0.00003f);
|
|
|
- //EyeSlot.SetLZ(-0.00001f);
|
|
|
- //TopSlot.SetLZ(-0.00003f);
|
|
|
- //MouseSlot.SetLZ(-0.00001f);
|
|
|
- //HeadWearSlot.SetLZ(-0.00001f);
|
|
|
-
|
|
|
- //HeadSlot.UnityTransform.SetLZ(0);
|
|
|
- //if (HeadSlot.UnityTransform.childCount > 1)
|
|
|
- //{
|
|
|
- // HeadSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
- // HeadSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
- //}
|
|
|
-
|
|
|
- //DressSlot.UnityTransform.SetLZ(-0.00002f);
|
|
|
-
|
|
|
- //if (DressSlot.UnityTransform.childCount > 1)
|
|
|
- //{
|
|
|
- // DressSlot.UnityTransform.GetChild(0).SetLZ(0.00002f);
|
|
|
- // DressSlot.UnityTransform.GetChild(1).SetLZ(0f);
|
|
|
- //}
|
|
|
-
|
|
|
- //LeftShoeSlot.SetLZ(-0.00001f);
|
|
|
- //RightShoeSlot.SetLZ(-0.00001f);
|
|
|
-
|
|
|
- //LeftLegSlot.SetLZ(0);
|
|
|
- //RightLegSlot.SetLZ(0);
|
|
|
- //NeckSlot.SetLZ(0.00001f);
|
|
|
- //LeftHandSlot.SetLZ(-0.00001f);
|
|
|
- //RightHandSlot.SetLZ(-0.00001f);
|
|
|
-
|
|
|
- //LeftShortSleeveSlot.SetLZ(-0.000015f);
|
|
|
- //RightShortSleeveSlot.SetLZ(-0.000015f);
|
|
|
-
|
|
|
- //LeftLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
- //RightLongSleeveUAC.transform.SetLZ(-0.000015f);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
private void SetSlotLocalZ(DragonBones.Slot slot, float z)
|