Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2ff7604cc | ||
|
|
70a8bc0000 | ||
|
|
06b102f0eb | ||
|
|
350103d5a9 | ||
|
|
2cf77e94ed | ||
|
|
917cbbfb90 | ||
|
|
eeffccd4e6 | ||
|
|
0549cdbd52 | ||
|
|
732e5ac6c6 | ||
|
|
8c5ad08475 | ||
|
|
6cc2486ebf | ||
|
|
68688c9daf | ||
|
|
d5ea26f15c | ||
|
|
37e4c54c20 | ||
|
|
9570334e25 | ||
|
|
3083224ee6 | ||
|
|
5ba176725f | ||
|
|
42e23e2f84 | ||
|
|
5480de5c6d | ||
|
|
e3e2f5200b | ||
|
|
6a4390f1b9 | ||
|
|
a73e125a49 | ||
|
|
3295314b7e | ||
|
|
8b3dd7a40a | ||
|
|
b79584f745 | ||
|
|
402f19b8a5 | ||
|
|
9acde45f4a | ||
|
|
004410048f | ||
|
|
f7b29819f6 | ||
|
|
7ebd5f59e3 | ||
|
|
e14a683f62 | ||
|
|
d754ff3b15 | ||
|
|
1bd1ffdb5a | ||
|
|
c50c229e30 | ||
|
|
50b46c5b76 |
No files matched your search
@@ -92,3 +92,4 @@ Assets/Mapbox/User.meta
|
|||||||
Packages/packages-lock.json
|
Packages/packages-lock.json
|
||||||
GPUCache
|
GPUCache
|
||||||
Assets/Shatalmic/plugin.unitypackage.meta
|
Assets/Shatalmic/plugin.unitypackage.meta
|
||||||
|
.idea
|
||||||
@@ -565,6 +565,23 @@ namespace ChartAndGraph
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetViewIndex(int dataIndex,string category)
|
||||||
|
{
|
||||||
|
CategoryData data = (CategoryData)mData[category];
|
||||||
|
int viewIndex = 0;
|
||||||
|
List<DoubleVector3> points = data.getPoints();
|
||||||
|
if (points.Count == 0)
|
||||||
|
viewIndex = 0;
|
||||||
|
if (dataIndex < 0)
|
||||||
|
viewIndex = 0;
|
||||||
|
for (int i = 0; i < points.Count; i++)
|
||||||
|
{
|
||||||
|
if (points[i].x == dataIndex)
|
||||||
|
viewIndex = i;
|
||||||
|
}
|
||||||
|
return viewIndex;
|
||||||
|
}
|
||||||
|
|
||||||
public DoubleVector3 GetPoint(string category, int index)
|
public DoubleVector3 GetPoint(string category, int index)
|
||||||
{
|
{
|
||||||
CategoryData data = (CategoryData)mData[category];
|
CategoryData data = (CategoryData)mData[category];
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public class GUIMainNetWorkInfo : MonoBehaviour
|
|||||||
if (_delayTime != App.delayTime && dict!=null)
|
if (_delayTime != App.delayTime && dict!=null)
|
||||||
{
|
{
|
||||||
_delayTime = App.delayTime;
|
_delayTime = App.delayTime;
|
||||||
|
Debug.Log("延迟"+_delayTime);
|
||||||
if (NetImage)
|
if (NetImage)
|
||||||
{
|
{
|
||||||
if (_delayTime != -1)
|
if (_delayTime != -1)
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ namespace Mapbox.Unity.Telemetry
|
|||||||
postRequest.downloadHandler = new DownloadHandlerBuffer();
|
postRequest.downloadHandler = new DownloadHandlerBuffer();
|
||||||
postRequest.uploadHandler = new UploadHandlerRaw(bodyRaw);
|
postRequest.uploadHandler = new UploadHandlerRaw(bodyRaw);
|
||||||
|
|
||||||
|
postRequest.uploadHandler.Dispose();
|
||||||
yield return postRequest.SendWebRequest();
|
yield return postRequest.SendWebRequest();
|
||||||
|
|
||||||
while (!postRequest.isDone) { yield return null; }
|
while (!postRequest.isDone) { yield return null; }
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<package android:name="com.tencent.mm" />
|
<package android:name="com.tencent.mm" />
|
||||||
<package android:name="com.zhixingpai.powerfun" />
|
<package android:name="com.zhixingpai.powerfun" />
|
||||||
</queries>
|
</queries>
|
||||||
<application android:requestLegacyExternalStorage="true">
|
<application android:requestLegacyExternalStorage="true" >
|
||||||
<activity android:name="com.unityplugins.imageselector.TestMainActivity"
|
<activity android:name="com.unityplugins.imageselector.TestMainActivity"
|
||||||
android:theme="@style/UnityThemeSelector"
|
android:theme="@style/UnityThemeSelector"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape"
|
||||||
|
|||||||
Binary file not shown.
@@ -97,14 +97,14 @@ TextureImporter:
|
|||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
- serializedVersion: 3
|
- serializedVersion: 3
|
||||||
buildTarget: Android
|
buildTarget: Android
|
||||||
maxTextureSize: 2048
|
maxTextureSize: 256
|
||||||
resizeAlgorithm: 0
|
resizeAlgorithm: 0
|
||||||
textureFormat: -1
|
textureFormat: 48
|
||||||
textureCompression: 1
|
textureCompression: 1
|
||||||
compressionQuality: 50
|
compressionQuality: 100
|
||||||
crunchedCompression: 0
|
crunchedCompression: 0
|
||||||
allowsAlphaSplitting: 0
|
allowsAlphaSplitting: 0
|
||||||
overridden: 0
|
overridden: 1
|
||||||
androidETC2FallbackOverride: 0
|
androidETC2FallbackOverride: 0
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
spriteSheet:
|
spriteSheet:
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f134d222725933a4a8aa79fee0ebc10c
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -30,7 +30,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 189965521107699628}
|
m_Father: {fileID: 189965521107699628}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
@@ -102,6 +102,7 @@ RectTransform:
|
|||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
|
- {fileID: 1107195470343135181}
|
||||||
- {fileID: 4347642619387382541}
|
- {fileID: 4347642619387382541}
|
||||||
- {fileID: 5333104648953487716}
|
- {fileID: 5333104648953487716}
|
||||||
- {fileID: 6514089965287851756}
|
- {fileID: 6514089965287851756}
|
||||||
@@ -153,7 +154,7 @@ MonoBehaviour:
|
|||||||
m_SelectedTrigger: Selected
|
m_SelectedTrigger: Selected
|
||||||
m_DisabledTrigger: Disabled
|
m_DisabledTrigger: Disabled
|
||||||
m_Interactable: 1
|
m_Interactable: 1
|
||||||
m_TargetGraphic: {fileID: 0}
|
m_TargetGraphic: {fileID: 5133914736490982493}
|
||||||
--- !u!1 &6092777681612193971
|
--- !u!1 &6092777681612193971
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -184,7 +185,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 189965521107699628}
|
m_Father: {fileID: 189965521107699628}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 0, y: 0.5}
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
@@ -258,7 +259,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 189965521107699628}
|
m_Father: {fileID: 189965521107699628}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
@@ -336,7 +337,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 189965521107699628}
|
m_Father: {fileID: 189965521107699628}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 4
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 0.5}
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
@@ -380,3 +381,77 @@ MonoBehaviour:
|
|||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 1
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &8209227311586515756
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1107195470343135181}
|
||||||
|
- component: {fileID: 1947824279171277418}
|
||||||
|
- component: {fileID: 5133914736490982493}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Panel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1107195470343135181
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8209227311586515756}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 189965521107699628}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &1947824279171277418
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8209227311586515756}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &5133914736490982493
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8209227311586515756}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 1
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
@@ -1825,7 +1825,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 5329299856310536127, guid: 6b94e789d6585a04dbdc04c8a7cf97b2,
|
- target: {fileID: 5329299856310536127, guid: 6b94e789d6585a04dbdc04c8a7cf97b2,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5329299856310536127, guid: 6b94e789d6585a04dbdc04c8a7cf97b2,
|
- target: {fileID: 5329299856310536127, guid: 6b94e789d6585a04dbdc04c8a7cf97b2,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -1960,7 +1960,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 2054923810110871857, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2054923810110871857, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2054923810110871857, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2054923810110871857, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -2185,7 +2185,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 5249748558008090706, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 5249748558008090706, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 5249748558008090706, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 5249748558008090706, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -2215,7 +2215,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 6347209353323850145, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 6347209353323850145, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6347209353323850145, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 6347209353323850145, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -2255,7 +2255,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8197454007437855745, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 8197454007437855745, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8197454007437855745, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 8197454007437855745, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -2275,7 +2275,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8526344065104504758, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 8526344065104504758, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchoredPosition.x
|
propertyPath: m_AnchoredPosition.x
|
||||||
value: 20
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8526344065104504758, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 8526344065104504758, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -224,10 +224,10 @@ RectTransform:
|
|||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 7026691674002745911}
|
|
||||||
- {fileID: 3931130817493022313}
|
- {fileID: 3931130817493022313}
|
||||||
- {fileID: 4277467338018245799}
|
- {fileID: 4277467338018245799}
|
||||||
- {fileID: 4071833300312694754}
|
- {fileID: 4071833300312694754}
|
||||||
|
- {fileID: 7026691674002745911}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -1270,7 +1270,7 @@ RectTransform:
|
|||||||
- {fileID: 4007984775395188520}
|
- {fileID: 4007984775395188520}
|
||||||
- {fileID: 4160894300255257250}
|
- {fileID: 4160894300255257250}
|
||||||
m_Father: {fileID: 1777885814862178517}
|
m_Father: {fileID: 1777885814862178517}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
@@ -1566,7 +1566,7 @@ RectTransform:
|
|||||||
- {fileID: 2929594986700416000}
|
- {fileID: 2929594986700416000}
|
||||||
- {fileID: 989933865135911001}
|
- {fileID: 989933865135911001}
|
||||||
m_Father: {fileID: 1777885814862178517}
|
m_Father: {fileID: 1777885814862178517}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 0}
|
m_AnchorMin: {x: 1, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
@@ -3462,7 +3462,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 7711159166601146376}
|
- {fileID: 7711159166601146376}
|
||||||
m_Father: {fileID: 1777885814862178517}
|
m_Father: {fileID: 1777885814862178517}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
@@ -3858,6 +3858,16 @@ PrefabInstance:
|
|||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: -44
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 829206726517620079, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 829206726517620079, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Spacing
|
propertyPath: m_Spacing
|
||||||
@@ -3966,7 +3976,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 0
|
value: 3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|||||||
@@ -1,5 +1,79 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &82065173456659075
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8307431894315046440}
|
||||||
|
- component: {fileID: 988096766456857417}
|
||||||
|
- component: {fileID: 2035646531741651786}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8307431894315046440
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 82065173456659075}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4167844827205442559}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 20, y: 20}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &988096766456857417
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 82065173456659075}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &2035646531741651786
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 82065173456659075}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 21300000, guid: 7e0689758fd8c8e4faf236660ef9ab96, type: 3}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!1 &465239218947862518
|
--- !u!1 &465239218947862518
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1888,9 +1962,8 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 4167844827205442559}
|
- component: {fileID: 4167844827205442559}
|
||||||
- component: {fileID: 4167844827205442557}
|
- component: {fileID: 4167844827205442557}
|
||||||
- component: {fileID: 4167844827205442556}
|
|
||||||
- component: {fileID: 4167844827205442554}
|
|
||||||
- component: {fileID: 4167844827205442546}
|
- component: {fileID: 4167844827205442546}
|
||||||
|
- component: {fileID: 1800254645157554092}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Button
|
m_Name: Button
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -1908,15 +1981,16 @@ RectTransform:
|
|||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 8307431894315046440}
|
||||||
m_Father: {fileID: 7944455583227005010}
|
m_Father: {fileID: 7944455583227005010}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 1}
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -10, y: -10}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 20, y: 20}
|
m_SizeDelta: {x: 40, y: 40}
|
||||||
m_Pivot: {x: 1, y: 1}
|
m_Pivot: {x: 1, y: 0.5}
|
||||||
--- !u!222 &4167844827205442557
|
--- !u!222 &4167844827205442557
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1925,51 +1999,6 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 4167844827205442558}
|
m_GameObject: {fileID: 4167844827205442558}
|
||||||
m_CullTransparentMesh: 0
|
m_CullTransparentMesh: 0
|
||||||
--- !u!114 &4167844827205442556
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4167844827205442558}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_RaycastTarget: 1
|
|
||||||
m_Maskable: 1
|
|
||||||
m_OnCullStateChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_Sprite: {fileID: 21300000, guid: 7e0689758fd8c8e4faf236660ef9ab96, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
m_UseSpriteMesh: 0
|
|
||||||
m_PixelsPerUnitMultiplier: 1
|
|
||||||
--- !u!114 &4167844827205442554
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4167844827205442558}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 97bc2ebab6563400c95b036136d26ea6, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Inverse: 0
|
|
||||||
m_MaskInteraction: 85
|
|
||||||
m_UseStencil: 1
|
|
||||||
m_RaycastFilter: 0
|
|
||||||
--- !u!114 &4167844827205442546
|
--- !u!114 &4167844827205442546
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2009,10 +2038,39 @@ MonoBehaviour:
|
|||||||
m_SelectedTrigger: Selected
|
m_SelectedTrigger: Selected
|
||||||
m_DisabledTrigger: Disabled
|
m_DisabledTrigger: Disabled
|
||||||
m_Interactable: 1
|
m_Interactable: 1
|
||||||
m_TargetGraphic: {fileID: 4167844827205442556}
|
m_TargetGraphic: {fileID: 1800254645157554092}
|
||||||
m_OnClick:
|
m_OnClick:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
--- !u!114 &1800254645157554092
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4167844827205442558}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!1 &4273405908919975550
|
--- !u!1 &4273405908919975550
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -5295,11 +5353,51 @@ PrefabInstance:
|
|||||||
m_Modification:
|
m_Modification:
|
||||||
m_TransformParent: {fileID: 465239219729653177}
|
m_TransformParent: {fileID: 465239219729653177}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 44
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 829206726517620079, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 829206726517620079, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Spacing
|
propertyPath: m_Spacing
|
||||||
@@ -5947,9 +6045,15 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &3344798044730818033 stripped
|
--- !u!1 &4951052648640690816 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 7472514873862735972, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 967434514102783765, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!224 &2234182990056195463 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 6258245508770672658, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
@@ -5959,12 +6063,6 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &5464789140640568869 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 148192672769352624, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5779092891361109961 stripped
|
--- !u!1 &5779092891361109961 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 1867831574853112412, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 1867831574853112412, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
@@ -5977,15 +6075,15 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!224 &2234182990056195463 stripped
|
--- !u!1 &3344798044730818033 stripped
|
||||||
RectTransform:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 6258245508770672658, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 7472514873862735972, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &4951052648640690816 stripped
|
--- !u!1 &5464789140640568869 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 967434514102783765, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 148192672769352624, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 5321188461237024149}
|
m_PrefabInstance: {fileID: 5321188461237024149}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
@@ -6144,18 +6242,6 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &6749386026079657654 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 712346121867735186, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &5594525415673429112 stripped
|
|
||||||
GameObject:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 1867831574853112412, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &3745822250017908288 stripped
|
--- !u!1 &3745822250017908288 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 7472514873862735972, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 7472514873862735972, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
@@ -6168,9 +6254,9 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &3980532922793874755 stripped
|
--- !u!1 &5594525415673429112 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 7166863393051868007, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 1867831574853112412, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
@@ -6180,12 +6266,24 @@ GameObject:
|
|||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1 &3980532922793874755 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 7166863393051868007, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!224 &185106026378206774 stripped
|
--- !u!224 &185106026378206774 stripped
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 6258245508770672658, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 6258245508770672658, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6073211655158443556}
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1 &6749386026079657654 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 712346121867735186, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6073211655158443556}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &4998415483215112909 stripped
|
--- !u!1 &4998415483215112909 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 1231050277644289257, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
m_CorrespondingSourceObject: {fileID: 1231050277644289257, guid: 5ee52e0b78bd38244a2b473e2236800c,
|
||||||
@@ -6319,10 +6417,25 @@ PrefabInstance:
|
|||||||
propertyPath: m_Text
|
propertyPath: m_Text
|
||||||
value: Route Name
|
value: Route Name
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7789118244628022189, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.size
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7789118244628022189, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7789118244628022189, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8098460543711191387, guid: 07e45aecba1a2d542b043157aa2e9322,
|
- target: {fileID: 8098460543711191387, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: -20
|
value: -50
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8098460543711191387, guid: 07e45aecba1a2d542b043157aa2e9322,
|
- target: {fileID: 8098460543711191387, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
type: 3}
|
type: 3}
|
||||||
@@ -6332,7 +6445,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 8306171861788952873, guid: 07e45aecba1a2d542b043157aa2e9322,
|
- target: {fileID: 8306171861788952873, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: -20
|
value: -50
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8306171861788952873, guid: 07e45aecba1a2d542b043157aa2e9322,
|
- target: {fileID: 8306171861788952873, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|||||||
@@ -1839,11 +1839,51 @@ PrefabInstance:
|
|||||||
m_Modification:
|
m_Modification:
|
||||||
m_TransformParent: {fileID: 3445340291243714514}
|
m_TransformParent: {fileID: 3445340291243714514}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 44
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 1372841062299834888, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 1372841062299834888, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ RectTransform:
|
|||||||
- {fileID: 7825229638776794366}
|
- {fileID: 7825229638776794366}
|
||||||
- {fileID: 7285418945995382289}
|
- {fileID: 7285418945995382289}
|
||||||
m_Father: {fileID: 1673965681348374004}
|
m_Father: {fileID: 1673965681348374004}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 0, y: 0.5}
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
@@ -916,6 +916,80 @@ MonoBehaviour:
|
|||||||
m_OnValueChanged:
|
m_OnValueChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
--- !u!1 &1666079404136861968
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5986387743058620222}
|
||||||
|
- component: {fileID: 1108190590139244821}
|
||||||
|
- component: {fileID: 2895518778347635672}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &5986387743058620222
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1666079404136861968}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 667989898749050068}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 20, y: 20}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &1108190590139244821
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1666079404136861968}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &2895518778347635672
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1666079404136861968}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 21300000, guid: 7e0689758fd8c8e4faf236660ef9ab96, type: 3}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!1 &1673965681348374007
|
--- !u!1 &1673965681348374007
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -946,12 +1020,12 @@ RectTransform:
|
|||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 7118448401530350836}
|
|
||||||
- {fileID: 7081805938635351733}
|
- {fileID: 7081805938635351733}
|
||||||
- {fileID: 3808910954941481150}
|
- {fileID: 3808910954941481150}
|
||||||
- {fileID: 6595848013761631944}
|
- {fileID: 6595848013761631944}
|
||||||
- {fileID: 4408462524766711656}
|
- {fileID: 4408462524766711656}
|
||||||
- {fileID: 7578623247347515893}
|
- {fileID: 7578623247347515893}
|
||||||
|
- {fileID: 7118448401530350836}
|
||||||
- {fileID: 9114115754477968003}
|
- {fileID: 9114115754477968003}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
@@ -1459,7 +1533,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1673965681348374004}
|
m_Father: {fileID: 1673965681348374004}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 4
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
@@ -1654,7 +1728,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1584307428038433354}
|
- {fileID: 1584307428038433354}
|
||||||
m_Father: {fileID: 1673965681348374004}
|
m_Father: {fileID: 1673965681348374004}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
@@ -2135,7 +2209,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1673965681348374004}
|
m_Father: {fileID: 1673965681348374004}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 0, y: 0.5}
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
@@ -2338,7 +2412,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1673965681348374004}
|
m_Father: {fileID: 1673965681348374004}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 0, y: 0.5}
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
@@ -2672,9 +2746,8 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 667989898749050068}
|
- component: {fileID: 667989898749050068}
|
||||||
- component: {fileID: 3398068556692691702}
|
- component: {fileID: 3398068556692691702}
|
||||||
- component: {fileID: 2024560652851735204}
|
|
||||||
- component: {fileID: 493883056891517441}
|
|
||||||
- component: {fileID: 6855301250549161376}
|
- component: {fileID: 6855301250549161376}
|
||||||
|
- component: {fileID: 2019057423038839423}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Button
|
m_Name: Button
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -2692,15 +2765,16 @@ RectTransform:
|
|||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 5986387743058620222}
|
||||||
m_Father: {fileID: 1786430169159750715}
|
m_Father: {fileID: 1786430169159750715}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 1}
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -10, y: -10}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 20, y: 20}
|
m_SizeDelta: {x: 40, y: 40}
|
||||||
m_Pivot: {x: 1, y: 1}
|
m_Pivot: {x: 1, y: 0.5}
|
||||||
--- !u!222 &3398068556692691702
|
--- !u!222 &3398068556692691702
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2709,51 +2783,6 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5948476992245059236}
|
m_GameObject: {fileID: 5948476992245059236}
|
||||||
m_CullTransparentMesh: 0
|
m_CullTransparentMesh: 0
|
||||||
--- !u!114 &2024560652851735204
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 5948476992245059236}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_RaycastTarget: 1
|
|
||||||
m_Maskable: 1
|
|
||||||
m_OnCullStateChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_Sprite: {fileID: 21300000, guid: 7e0689758fd8c8e4faf236660ef9ab96, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
m_UseSpriteMesh: 0
|
|
||||||
m_PixelsPerUnitMultiplier: 1
|
|
||||||
--- !u!114 &493883056891517441
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 5948476992245059236}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 97bc2ebab6563400c95b036136d26ea6, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Inverse: 0
|
|
||||||
m_MaskInteraction: 85
|
|
||||||
m_UseStencil: 1
|
|
||||||
m_RaycastFilter: 0
|
|
||||||
--- !u!114 &6855301250549161376
|
--- !u!114 &6855301250549161376
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2793,10 +2822,39 @@ MonoBehaviour:
|
|||||||
m_SelectedTrigger: Selected
|
m_SelectedTrigger: Selected
|
||||||
m_DisabledTrigger: Disabled
|
m_DisabledTrigger: Disabled
|
||||||
m_Interactable: 1
|
m_Interactable: 1
|
||||||
m_TargetGraphic: {fileID: 2024560652851735204}
|
m_TargetGraphic: {fileID: 2019057423038839423}
|
||||||
m_OnClick:
|
m_OnClick:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
--- !u!114 &2019057423038839423
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5948476992245059236}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!1 &5957950172520614784
|
--- !u!1 &5957950172520614784
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -3652,18 +3710,18 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 07e45aecba1a2d542b043157aa2e9322, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 07e45aecba1a2d542b043157aa2e9322, type: 3}
|
||||||
--- !u!224 &1786430169159750715 stripped
|
|
||||||
RectTransform:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 3608523562535466787, guid: 07e45aecba1a2d542b043157aa2e9322,
|
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 3089084281570681624}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &3712583330546725488 stripped
|
--- !u!1 &3712583330546725488 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 1827088261433348456, guid: 07e45aecba1a2d542b043157aa2e9322,
|
m_CorrespondingSourceObject: {fileID: 1827088261433348456, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 3089084281570681624}
|
m_PrefabInstance: {fileID: 3089084281570681624}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!224 &1786430169159750715 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 3608523562535466787, guid: 07e45aecba1a2d542b043157aa2e9322,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 3089084281570681624}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &5067779267173090679
|
--- !u!1001 &5067779267173090679
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -3671,11 +3729,51 @@ PrefabInstance:
|
|||||||
m_Modification:
|
m_Modification:
|
||||||
m_TransformParent: {fileID: 1673965681348374004}
|
m_TransformParent: {fileID: 1673965681348374004}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_SizeDelta.x
|
propertyPath: m_SizeDelta.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 44
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 485508193206389098, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 1372841062299834888, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 1372841062299834888, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_AnchorMax.y
|
propertyPath: m_AnchorMax.y
|
||||||
@@ -3799,7 +3897,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 0
|
value: 5
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
- target: {fileID: 2638424933752433027, guid: a1999d0576fee6248a9c5a507ae8d10e,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|||||||
+1513
-1513
File diff suppressed because it is too large.
Load diff
+1453
-1453
File diff suppressed because it is too large.
Load diff
@@ -424,7 +424,7 @@ MonoBehaviour:
|
|||||||
UserName:
|
UserName:
|
||||||
rasterOptions:
|
rasterOptions:
|
||||||
useRetina: 0
|
useRetina: 0
|
||||||
useCompression: 0
|
useCompression: 1
|
||||||
useMipMap: 0
|
useMipMap: 0
|
||||||
_terrain:
|
_terrain:
|
||||||
_layerProperty:
|
_layerProperty:
|
||||||
@@ -4962,7 +4962,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!4 &1552436184
|
--- !u!4 &1552436184
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
using Assets.Scripts;
|
using Assets.Scripts;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
@@ -34,7 +36,6 @@ namespace Assets.Scripts.Apis
|
|||||||
{
|
{
|
||||||
//http = new EasyHttp.Http.HttpClient();
|
//http = new EasyHttp.Http.HttpClient();
|
||||||
//http.Request.PersistCookies = true;
|
//http.Request.PersistCookies = true;
|
||||||
|
|
||||||
httpClientHandler = new PfHttpClientHandler();
|
httpClientHandler = new PfHttpClientHandler();
|
||||||
httpClientHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
httpClientHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
|
||||||
httpClientHandler.Proxy = WebRequest.GetSystemWebProxy();
|
httpClientHandler.Proxy = WebRequest.GetSystemWebProxy();
|
||||||
@@ -292,8 +293,16 @@ namespace Assets.Scripts.Apis
|
|||||||
request.CookieContainer.Add(item);
|
request.CookieContainer.Add(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var settings = new JsonSerializerSettings();
|
||||||
|
|
||||||
|
settings.Converters.Add(new IsoDateTimeConverter
|
||||||
|
{
|
||||||
|
Culture = CultureInfo.CurrentCulture,
|
||||||
|
DateTimeStyles = DateTimeStyles.AssumeLocal
|
||||||
|
});
|
||||||
|
|
||||||
var postData = new StringBuilder();
|
var postData = new StringBuilder();
|
||||||
var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(data));
|
var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(JsonConvert.SerializeObject(data, settings));
|
||||||
foreach (var item in values)
|
foreach (var item in values)
|
||||||
{
|
{
|
||||||
postData.Append(WebUtility.UrlEncode($"{ item.Key }={ item.Value }&"));
|
postData.Append(WebUtility.UrlEncode($"{ item.Key }={ item.Value }&"));
|
||||||
|
|||||||
@@ -25,5 +25,7 @@ namespace Assets.Scripts.Apis.Models
|
|||||||
public string NickName { get; set; }
|
public string NickName { get; set; }
|
||||||
|
|
||||||
public double WeightKg { get; set; }
|
public double WeightKg { get; set; }
|
||||||
|
public double Weight { get; set; }
|
||||||
|
public double BikeWeight { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ namespace Assets.Scripts.Apis
|
|||||||
if (json.code == 401)
|
if (json.code == 401)
|
||||||
{
|
{
|
||||||
App.is401 = json.errMsg;
|
App.is401 = json.errMsg;
|
||||||
UIManager.Instance.StartCoroutine(LoadLogin(json.errMsg));
|
UnityMainThreadDispatcher.Instance().Enqueue(LoadLogin(json.errMsg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -23,5 +23,11 @@ namespace Assets.Scripts.Apis
|
|||||||
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||||
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||||
}
|
}
|
||||||
|
public async Task<Stream> GetMapImage(double latitude,double longitude)
|
||||||
|
{
|
||||||
|
return await GetThirdPartStreamAsync($"https://api.mapbox.com/styles/v1/juzetest/ckmkdjwsa1nvt17nr1ps4fqgs/static/{longitude.ToString(CultureInfo.InvariantCulture)},{latitude.ToString(CultureInfo.InvariantCulture)},12,0/1280x1280?access_token=pk.eyJ1IjoianV6ZXRlc3QiLCJhIjoiY2ttazhsbnpiMGVrdjJucGhyNnh6eXcxYSJ9.6zj2U9eFCNJRMljNlMxjVg");
|
||||||
|
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||||
|
//pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ using System.Timers;
|
|||||||
|
|
||||||
public static class App
|
public static class App
|
||||||
{
|
{
|
||||||
public static string Host = "http://192.168.0.101:5085/";
|
public static string Host = "http://192.168.0.101:5084/";
|
||||||
|
|
||||||
public static string AppVersion = Application.version;
|
public static string AppVersion = Application.version;
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ public static class App
|
|||||||
public static IDictionary<string, Texture> TextureCache = new Dictionary<string, Texture>();
|
public static IDictionary<string, Texture> TextureCache = new Dictionary<string, Texture>();
|
||||||
public static Texture CurrentUserHeadTexture;
|
public static Texture CurrentUserHeadTexture;
|
||||||
public static RouteResult routeResult;//骑行记录向骑行场景传值
|
public static RouteResult routeResult;//骑行记录向骑行场景传值
|
||||||
public static Texture DefaultRotateTexture;
|
public static Texture DefaultRotateTexture { get; set; }
|
||||||
//全局用 输入框或者下拉框修改标志位
|
//全局用 输入框或者下拉框修改标志位
|
||||||
public static bool isChanged { get; set; }
|
public static bool isChanged { get; set; }
|
||||||
public static string notifyContent { get; internal set; }
|
public static string notifyContent { get; internal set; }
|
||||||
@@ -100,6 +100,7 @@ public static class App
|
|||||||
public static float canvasWidth { get; set; }
|
public static float canvasWidth { get; set; }
|
||||||
public static string WorkoutsUrl { get; internal set; }
|
public static string WorkoutsUrl { get; internal set; }
|
||||||
public static long delayTime { get; set; }
|
public static long delayTime { get; set; }
|
||||||
|
public static List<OnlineUser> userList = new List<OnlineUser>();
|
||||||
|
|
||||||
static App()
|
static App()
|
||||||
{
|
{
|
||||||
@@ -109,9 +110,10 @@ public static class App
|
|||||||
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
||||||
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
||||||
Host = "https://wx.powerfun.com.cn/";
|
Host = "https://wx.powerfun.com.cn/";
|
||||||
|
//Host = "http://192.168.0.101:5085/";
|
||||||
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
|
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
|
||||||
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
|
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
|
||||||
|
Debug.unityLogger.logEnabled = false;
|
||||||
#endif
|
#endif
|
||||||
var isRower = PlayerPrefs.GetString("IsRowerMode");
|
var isRower = PlayerPrefs.GetString("IsRowerMode");
|
||||||
if (!string.IsNullOrEmpty(isRower))
|
if (!string.IsNullOrEmpty(isRower))
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
|
|||||||
transform.Find("Version").gameObject.SetActive(false);
|
transform.Find("Version").gameObject.SetActive(false);
|
||||||
UIManager.ShowAndroidUpdate(info);
|
UIManager.ShowAndroidUpdate(info);
|
||||||
}
|
}
|
||||||
|
App.WorkoutsUrl = r.data.Value<JObject>("Apk").Value<string>("Url");
|
||||||
#elif UNITY_IOS
|
#elif UNITY_IOS
|
||||||
var sw = r.data.Value<string>("ThirdPartSwitch");
|
var sw = r.data.Value<string>("ThirdPartSwitch");
|
||||||
transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin")
|
transform.Find("Panel/LoginContainer/LoginScrollView/Viewport/Content/FormContainer-Login/Mask/FormContainer/BtnThirdLogin")
|
||||||
@@ -77,8 +77,9 @@ public class LoginControllerMobile : MonoBehaviour, INativeOnMobileWxLoginResp
|
|||||||
Application.OpenURL(info.Value<string>("Url"));
|
Application.OpenURL(info.Value<string>("Url"));
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
}
|
}
|
||||||
|
App.WorkoutsUrl = r.data.Value<JObject>("Ios").Value<string>("Url");
|
||||||
#endif
|
#endif
|
||||||
App.WorkoutsUrl = info.Value<string>("Url");
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
//if (r.result)
|
//if (r.result)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace Assets.Scripts.Scenes
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
ping = new Ping("47.97.84.8");
|
ping = new Ping("47.97.84.8");
|
||||||
yield return new WaitForSeconds(1);
|
yield return new WaitForSeconds(5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,6 +51,23 @@ namespace Assets.Scripts.Scenes
|
|||||||
App.MainDeviceAdapter.Dispose();
|
App.MainDeviceAdapter.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnDestroy()
|
||||||
|
{
|
||||||
|
var objAry = Resources.FindObjectsOfTypeAll<Material>();
|
||||||
|
|
||||||
|
for (int i = 0; i < objAry.Length; ++i)
|
||||||
|
{
|
||||||
|
objAry[i] = null;//解除资源的引用
|
||||||
|
}
|
||||||
|
var objAry2 = Resources.FindObjectsOfTypeAll<Texture>();
|
||||||
|
for (int i = 0; i < objAry2.Length; ++i)
|
||||||
|
{
|
||||||
|
objAry2[i] = null;//解除资源的引用
|
||||||
|
}
|
||||||
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
|
}
|
||||||
|
|
||||||
private void OnApplicationPause(bool focus)
|
private void OnApplicationPause(bool focus)
|
||||||
{
|
{
|
||||||
if (focus)
|
if (focus)
|
||||||
|
|||||||
@@ -579,6 +579,22 @@ public class LoginController : BaseScene
|
|||||||
{
|
{
|
||||||
if (!App.TextureCache.ContainsKey("rotateImage"))
|
if (!App.TextureCache.ContainsKey("rotateImage"))
|
||||||
{
|
{
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
StartCoroutine(Utils.StartLocation(async loc =>
|
||||||
|
{
|
||||||
|
App.latitude = loc.latitude;
|
||||||
|
App.longitude = loc.longitude;
|
||||||
|
var i = await ConfigHelper.thirdPartApi.GetMapImage(loc.latitude,loc.longitude);
|
||||||
|
var t = new Texture2D(4, 4,TextureFormat.ASTC_RGB_4x4, false);
|
||||||
|
if (t.LoadImage(Utils.StreamToBytes(i)))
|
||||||
|
{
|
||||||
|
Debug.Log("成功");
|
||||||
|
App.TextureCache["rotateImage"] = t;
|
||||||
|
Utils.WriteTextureToPlayerPrefs("rotateImage", t);
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
#else
|
||||||
|
|
||||||
var locationInfo = await ConfigHelper.thirdPartApi.GetLocationInfo();
|
var locationInfo = await ConfigHelper.thirdPartApi.GetLocationInfo();
|
||||||
App.latitude = locationInfo.latitude;
|
App.latitude = locationInfo.latitude;
|
||||||
App.longitude = locationInfo.longitude;
|
App.longitude = locationInfo.longitude;
|
||||||
@@ -595,7 +611,7 @@ public class LoginController : BaseScene
|
|||||||
//}
|
//}
|
||||||
Debug.Log(JsonConvert.SerializeObject(locationInfo));
|
Debug.Log(JsonConvert.SerializeObject(locationInfo));
|
||||||
var i = await ConfigHelper.thirdPartApi.GetMapImage(locationInfo);
|
var i = await ConfigHelper.thirdPartApi.GetMapImage(locationInfo);
|
||||||
var t = new Texture2D(2, 2);
|
var t = new Texture2D(2, 2, TextureFormat.DXT5, false);
|
||||||
if (t.LoadImage(Utils.StreamToBytes(i)))
|
if (t.LoadImage(Utils.StreamToBytes(i)))
|
||||||
{
|
{
|
||||||
Debug.Log("成功");
|
Debug.Log("成功");
|
||||||
@@ -606,6 +622,7 @@ public class LoginController : BaseScene
|
|||||||
//Utils.DownloadImageToLocal(StartCoroutine,
|
//Utils.DownloadImageToLocal(StartCoroutine,
|
||||||
//$"https://api.mapbox.com/styles/v1/mapbox/dark-v10/static/{locationInfo.longitude},{locationInfo.latitude},12.14,0/1280x1280?access_token=pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA",
|
//$"https://api.mapbox.com/styles/v1/mapbox/dark-v10/static/{locationInfo.longitude},{locationInfo.latitude},12.14,0/1280x1280?access_token=pk.eyJ1IjoiYW5keXNqdCIsImEiOiJja2ZhajE5OGwwamRiMnltcW96bHk0ZWFuIn0.GvKanc6UveWSvIjS9HfBPA",
|
||||||
//"rotateImage");
|
//"rotateImage");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1222,10 +1239,7 @@ public class LoginController : BaseScene
|
|||||||
App.CurrentUser = data;
|
App.CurrentUser = data;
|
||||||
App.RideSetting.Sensitivity = data.Sensitivity;
|
App.RideSetting.Sensitivity = data.Sensitivity;
|
||||||
//查询我参加的比赛
|
//查询我参加的比赛
|
||||||
Task.Run(() =>
|
UIManager.UpdateJoinCompetition();
|
||||||
{
|
|
||||||
UIManager.UpdateJoinCompetition();
|
|
||||||
});
|
|
||||||
//SceneManager.LoadSceneAsync("MainScene");
|
//SceneManager.LoadSceneAsync("MainScene");
|
||||||
StartCoroutine("LoadMain");
|
StartCoroutine("LoadMain");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,10 +107,8 @@ public class MainController : BaseScene
|
|||||||
//UIManager.ShowBigMapPanel();
|
//UIManager.ShowBigMapPanel();
|
||||||
//UIManager.ShowEarthPanel();
|
//UIManager.ShowEarthPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
Task.Run(() => {
|
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
|
||||||
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
altitudeGraph.gameObject.SetActive(false);
|
altitudeGraph.gameObject.SetActive(false);
|
||||||
//暂停按钮禁用
|
//暂停按钮禁用
|
||||||
pauseButton.interactable = false;
|
pauseButton.interactable = false;
|
||||||
|
InitGameObject();
|
||||||
}
|
}
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
@@ -67,7 +68,12 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//开始骑行-加个5秒钟倒计时
|
//开始骑行-加个5秒钟倒计时
|
||||||
public override void StartRide()
|
public override void StartRide()
|
||||||
{
|
{
|
||||||
competitionModel = mainController.cyclingController as CompetitionModel;
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InitGameObject()
|
||||||
|
{
|
||||||
|
competitionModel = mainController.cyclingController as CompetitionModel;
|
||||||
|
|
||||||
#if UNITY_IOS || UNITY_ANDROID
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
countDownPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Match/Mobile/CountDownPanel"), uipanel.transform);
|
countDownPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Match/Mobile/CountDownPanel"), uipanel.transform);
|
||||||
@@ -96,7 +102,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
miniMap.SetActive(false); //隐藏小地图
|
miniMap.SetActive(false); //隐藏小地图
|
||||||
//viewButton.gameObject.SetActive(false);//隐藏切换视角
|
//viewButton.gameObject.SetActive(false);//隐藏切换视角
|
||||||
headPanel.SetActive(!mainController.isWatch); //隐藏海拔图观察者的头像
|
headPanel.SetActive(!mainController.isWatch); //隐藏海拔图观察者的头像
|
||||||
|
competitionModel = mainController.cyclingController as CompetitionModel;
|
||||||
if (competitionModel == null)
|
if (competitionModel == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -23,13 +23,17 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
CountTimer = transform.Find("Timer").GetComponent<Text>();
|
CountTimer = transform.Find("Timer").GetComponent<Text>();
|
||||||
TimerTitle = transform.Find("ConpetitionTimerTitle").GetComponent<Text>();
|
TimerTitle = transform.Find("ConpetitionTimerTitle").GetComponent<Text>();
|
||||||
Timer = transform.Find("ConpetitionTimer").GetComponent<Text>();
|
Timer = transform.Find("ConpetitionTimer").GetComponent<Text>();
|
||||||
competitionModel = cyclingController.cyclingController as CompetitionModel;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
GameObject competitionResultPanel { get; set; }
|
GameObject competitionResultPanel { get; set; }
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
if (competitionModel == null)
|
||||||
|
{
|
||||||
|
competitionModel = cyclingController.cyclingController as CompetitionModel;
|
||||||
|
}
|
||||||
if (competitionModel != null)
|
if (competitionModel != null)
|
||||||
{
|
{
|
||||||
var count = competitionModel.StartCountdown();
|
var count = competitionModel.StartCountdown();
|
||||||
|
|||||||
@@ -55,6 +55,17 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
//AntModelId = antModelId
|
//AntModelId = antModelId
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (param != null)
|
||||||
|
{
|
||||||
|
recorderData.ContinueIndex = param.ContinueIndex??0;
|
||||||
|
if (!string.IsNullOrEmpty(param.ContinueMark)) {
|
||||||
|
recorderData.ContinueMark = param.ContinueMark;
|
||||||
|
}
|
||||||
|
recorderData.EndDistance = param.EndDistance;
|
||||||
|
recorderData.PreDistance = param.EndDistance;
|
||||||
|
recorderData.CurrentRouteStartDistance = param.EndDistance;
|
||||||
|
}
|
||||||
|
|
||||||
//recorderData = recorderData1;
|
//recorderData = recorderData1;
|
||||||
this.IsRecord = true;
|
this.IsRecord = true;
|
||||||
//riders = riders1;
|
//riders = riders1;
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
|
|
||||||
void Send(byte[] dgram, int bytes);
|
void Send(byte[] dgram, int bytes);
|
||||||
|
|
||||||
|
void Disconnect();
|
||||||
|
|
||||||
void Close();
|
void Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,10 +90,19 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
var now = DateTime.Now;
|
var now = DateTime.Now;
|
||||||
//超过一秒没有收到消息
|
//超过一秒没有收到消息
|
||||||
|
Console.WriteLine($"Heartbeat_Elapsed{(now - LastActiveTime).TotalSeconds}");
|
||||||
if ((now - LastActiveTime).TotalSeconds > 1)
|
if ((now - LastActiveTime).TotalSeconds > 1)
|
||||||
{
|
{
|
||||||
onlineUserHelper.SetOnlineUser(new List<ReceiveMsgModel>());
|
onlineUserHelper.SetOnlineUser(new List<ReceiveMsgModel>());
|
||||||
}
|
}
|
||||||
|
#if UNITY_IOS
|
||||||
|
//超过5s没收到消息断开重连一次
|
||||||
|
if ((now - LastActiveTime).TotalSeconds > 5)
|
||||||
|
{
|
||||||
|
LastActiveTime = now;
|
||||||
|
_udpService.Disconnect();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (now.Second % 20 == 0)
|
if (now.Second % 20 == 0)
|
||||||
{
|
{
|
||||||
//LastActiveTime = now;
|
//LastActiveTime = now;
|
||||||
@@ -158,6 +167,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void SendGizpModel()
|
public static void SendGizpModel()
|
||||||
{
|
{
|
||||||
|
LastActiveTime = DateTime.Now;
|
||||||
var client = App.AppVersion;
|
var client = App.AppVersion;
|
||||||
#if UNITY_ANDROID
|
#if UNITY_ANDROID
|
||||||
client = "Unity-Android" + App.AppVersion;
|
client = "Unity-Android" + App.AppVersion;
|
||||||
@@ -258,6 +268,10 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
if (_udpService != null)
|
||||||
|
{
|
||||||
|
_udpService.Close();
|
||||||
|
}
|
||||||
//停止计时
|
//停止计时
|
||||||
if (heartbeat != null)
|
if (heartbeat != null)
|
||||||
{
|
{
|
||||||
@@ -386,9 +400,26 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
var ids = msgs.Where(m => onlineUsers.All(u => u.Id != m.MemberId)).Select(m => m.MemberId);
|
var ids = msgs.Where(m => onlineUsers.All(u => u.Id != m.MemberId)).Select(m => m.MemberId);
|
||||||
if (ids.Any())
|
if (ids.Any())
|
||||||
{
|
{
|
||||||
MapApi api = new MapApi();
|
List<int> notCachedIds = new List<int>();
|
||||||
var rangeUser = api.GetOnlineUserInfo(ids).data;
|
foreach (var userId in ids)
|
||||||
onlineUsers.AddRange(rangeUser);
|
{
|
||||||
|
var user = App.userList.Where(c => c.Id == userId).FirstOrDefault();
|
||||||
|
if (user != null)
|
||||||
|
{
|
||||||
|
onlineUsers.Add(user);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
notCachedIds.Add(userId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (notCachedIds.Count > 0)
|
||||||
|
{
|
||||||
|
var rangeUser = ConfigHelper.mapApi.GetOnlineUserInfo(ids).data;
|
||||||
|
onlineUsers.AddRange(rangeUser);
|
||||||
|
App.userList.AddRange(rangeUser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
foreach (var user in onlineUsers)
|
foreach (var user in onlineUsers)
|
||||||
{
|
{
|
||||||
@@ -429,11 +460,11 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
onlineUsers.RemoveAll(u => u.IsLost);
|
onlineUsers.RemoveAll(u => u.IsLost);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
Thread.Sleep(3000);
|
||||||
throw;
|
Debug.WriteLine(ex.Message);
|
||||||
#endif
|
//throw;
|
||||||
//return new List<OnlineUser>();
|
//return new List<OnlineUser>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ using System.Net.Sockets;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using NetCoreServer;
|
||||||
|
|
||||||
namespace Assets.Scenes.Ride.Scripts.Network
|
namespace Assets.Scenes.Ride.Scripts.Network
|
||||||
{
|
{
|
||||||
@@ -47,15 +48,41 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
//_tcpClient.WriteLine(System.Text.Encoding.ASCII.GetString(dgram));
|
//_tcpClient.WriteLine(System.Text.Encoding.ASCII.GetString(dgram));
|
||||||
var txt = System.Text.Encoding.ASCII.GetString(dgram);
|
var txt = System.Text.Encoding.ASCII.GetString(dgram);
|
||||||
//Debug.WriteLine("发送:"+txt);
|
//Debug.WriteLine("发送:"+txt);
|
||||||
_tcpClient.Send(txt);
|
try
|
||||||
|
{
|
||||||
|
_tcpClient.SendAsync(txt);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Disconnect()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_tcpClient.DisconnectAsync();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
isExit = true;
|
try
|
||||||
_tcpClient.DisconnectAndStop();
|
{
|
||||||
|
isExit = true;
|
||||||
|
_tcpClient.DisconnectAndStop();
|
||||||
|
|
||||||
_tcpClient = null;
|
_tcpClient = null;
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -71,11 +98,15 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
public void DisconnectAndStop()
|
public void DisconnectAndStop()
|
||||||
{
|
{
|
||||||
_stop = true;
|
_stop = true;
|
||||||
DisconnectAsync();
|
Task.Run(() =>
|
||||||
while (IsConnected)
|
|
||||||
{
|
{
|
||||||
Thread.Yield();
|
DisconnectAsync();
|
||||||
}
|
});
|
||||||
|
|
||||||
|
//while (IsConnected)
|
||||||
|
//{
|
||||||
|
// Thread.Yield();
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnConnected()
|
protected override void OnConnected()
|
||||||
@@ -87,7 +118,7 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
protected override void OnDisconnected()
|
protected override void OnDisconnected()
|
||||||
{
|
{
|
||||||
//base.OnDisconnected();
|
//base.OnDisconnected();
|
||||||
Debug.WriteLine("tcp断线,3秒后重连");
|
Console.WriteLine("tcp断线,3秒后重连");
|
||||||
Thread.Sleep(3000);
|
Thread.Sleep(3000);
|
||||||
|
|
||||||
if (!_stop)
|
if (!_stop)
|
||||||
@@ -172,10 +203,10 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
//Debug.WriteLine("收到:" + returnData+"\r\n");
|
//Debug.WriteLine("收到:" + returnData+"\r\n");
|
||||||
//System.IO.File.AppendAllText(System.Environment.CurrentDirectory + "接收到的数据.txt", returnData.Trim().Replace("\0", "")+"\r\n", Encoding.UTF8);
|
//System.IO.File.AppendAllText(System.Environment.CurrentDirectory + "接收到的数据.txt", returnData.Trim().Replace("\0", "")+"\r\n", Encoding.UTF8);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnError(SocketError error)
|
protected override void OnError(SocketError error)
|
||||||
{
|
{
|
||||||
//base.OnError(error);
|
//base.OnError(error);
|
||||||
|
Console.WriteLine("出错后重启");
|
||||||
Debug.WriteLine(error);
|
Debug.WriteLine(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,6 +84,10 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
|||||||
udpClient?.Send(dgram, bytes);
|
udpClient?.Send(dgram, bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Disconnect()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
isExit = true;
|
isExit = true;
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
#region UI行为
|
#region UI行为
|
||||||
|
|
||||||
protected virtual void MoveGraphHead()
|
protected virtual void MoveGraphHead(bool init = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
protected virtual void Start()
|
protected virtual void Start()
|
||||||
{
|
{
|
||||||
InitData();//初始
|
InitData();//初始
|
||||||
RenderChart();//渲染海拔图
|
|
||||||
}
|
}
|
||||||
Text totalDistanceCompetition { get; set; }
|
Text totalDistanceCompetition { get; set; }
|
||||||
GameObject distanceIconCompetition { get; set; }
|
GameObject distanceIconCompetition { get; set; }
|
||||||
@@ -318,6 +318,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
shadowButton.enabled = true;
|
shadowButton.enabled = true;
|
||||||
shadowButton.interactable = true;
|
shadowButton.interactable = true;
|
||||||
}
|
}
|
||||||
|
RenderChart();//渲染海拔图
|
||||||
//默认地图3d/2d
|
//默认地图3d/2d
|
||||||
DefaultView(routeInstance);
|
DefaultView(routeInstance);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
public double GetCurrentStart(int currentIndex)
|
public double GetCurrentStart(int currentIndex)
|
||||||
{
|
{
|
||||||
|
if (currentIndex == 0)
|
||||||
|
return 0;
|
||||||
int i = currentIndex / targetPoints;
|
int i = currentIndex / targetPoints;
|
||||||
int max = mData.Count() - targetPoints;
|
int max = mData.Count() - targetPoints;
|
||||||
var current = i * targetPoints;
|
var current = i * targetPoints;
|
||||||
@@ -157,14 +159,17 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
public int GetViewIndex(int index)
|
public int GetViewIndex(int index)
|
||||||
{
|
{
|
||||||
foreach (var item in pointMap)
|
if (graph == null)
|
||||||
{
|
return index;
|
||||||
if (item.Key.Contains(index))
|
return graph.DataSource.GetViewIndex(index, Category);
|
||||||
{
|
//foreach (var item in pointMap)
|
||||||
return item.Value;
|
//{
|
||||||
}
|
// if (item.Key.Contains(index))
|
||||||
}
|
// {
|
||||||
return index;
|
// return item.Value;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
private IDictionary<IList<int>, int> pointMap = new Dictionary<IList<int>, int>();
|
private IDictionary<IList<int>, int> pointMap = new Dictionary<IList<int>, int>();
|
||||||
@@ -238,6 +243,10 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mData = data;
|
mData = data;
|
||||||
|
if (targetPoints > mData.Count)
|
||||||
|
{
|
||||||
|
targetPoints = mData.Count;
|
||||||
|
}
|
||||||
LoadPage(currentPagePosition); // load the page at position 0
|
LoadPage(currentPagePosition); // load the page at position 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
public RouteResultParam selectParamModel;
|
public RouteResultParam selectParamModel;
|
||||||
public RouteResult routeResult;
|
public RouteResult routeResult;
|
||||||
|
|
||||||
|
public GameObject minicamera;
|
||||||
|
|
||||||
public Dictionary<int, SeletedPlayerScript> selectPlayerDic { set; get; } = new Dictionary<int, SeletedPlayerScript>();
|
public Dictionary<int, SeletedPlayerScript> selectPlayerDic { set; get; } = new Dictionary<int, SeletedPlayerScript>();
|
||||||
|
|
||||||
public int preticks;
|
public int preticks;
|
||||||
@@ -80,17 +82,6 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
//获取路书信息
|
//获取路书信息
|
||||||
mapApi = ConfigHelper.mapApi;
|
mapApi = ConfigHelper.mapApi;
|
||||||
routeId = App.RouteIdParam > 0? App.RouteIdParam : 2633;
|
routeId = App.RouteIdParam > 0? App.RouteIdParam : 2633;
|
||||||
//mapRoute = mapApi.GetById(routeId).data;
|
|
||||||
//miniMap = transform.Find("MiniMap").gameObject;//小地图
|
|
||||||
//var panel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/Panel"), UIObject.transform);
|
|
||||||
|
|
||||||
//resultPanel = transform.Find("UI/Panel/ResultPanel").gameObject;
|
|
||||||
|
|
||||||
////获取海拔图UI对象
|
|
||||||
//var graphObject = transform.Find("UI/Panel/GraphChart");
|
|
||||||
//chartDataSourceScript = graphObject.GetComponent<ChartDataSourceScript>();
|
|
||||||
//graph = graphObject.GetComponent<GraphChartBase>();
|
|
||||||
|
|
||||||
competitionId = App.CompetionId;
|
competitionId = App.CompetionId;
|
||||||
App.CompetionId = 0;//清空比赛参数
|
App.CompetionId = 0;//清空比赛参数
|
||||||
Resources.UnloadUnusedAssets();
|
Resources.UnloadUnusedAssets();
|
||||||
@@ -98,8 +89,9 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
|
|
||||||
void OnDestroy()
|
void OnDestroy()
|
||||||
{
|
{
|
||||||
//App.TextureCache.Clear();
|
MapUDPService.Dispose();
|
||||||
Resources.UnloadUnusedAssets();
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
}
|
}
|
||||||
Transform target;
|
Transform target;
|
||||||
GameObject watcher;
|
GameObject watcher;
|
||||||
@@ -119,6 +111,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
return OnlineHeadPanel;
|
return OnlineHeadPanel;
|
||||||
}
|
}
|
||||||
Material Graph3d { get; set; }
|
Material Graph3d { get; set; }
|
||||||
|
Material Graph4 { get; set; }
|
||||||
|
Material Graph1 { get; set; }
|
||||||
public Material Get3dGraph2()
|
public Material Get3dGraph2()
|
||||||
{
|
{
|
||||||
if (Graph3d == null)
|
if (Graph3d == null)
|
||||||
@@ -127,6 +121,26 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
}
|
}
|
||||||
return Graph3d;
|
return Graph3d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Material GetMaterial4()
|
||||||
|
{
|
||||||
|
if (Graph4 == null)
|
||||||
|
{
|
||||||
|
Graph4 = Resources.Load<Material>("UI/Material/4");
|
||||||
|
}
|
||||||
|
return Graph4;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Material GetMaterial1()
|
||||||
|
{
|
||||||
|
if (Graph1 == null)
|
||||||
|
{
|
||||||
|
Graph1 = Resources.Load<Material>("UI/Material/1");
|
||||||
|
}
|
||||||
|
return Graph1;
|
||||||
|
}
|
||||||
|
|
||||||
Image CompetitionArrow { get; set; }
|
Image CompetitionArrow { get; set; }
|
||||||
public Image GetCompetitionArrow()
|
public Image GetCompetitionArrow()
|
||||||
{
|
{
|
||||||
@@ -184,7 +198,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
watcher = Resources.Load<GameObject>("UI/Prefab/Match/Watcher");
|
watcher = Resources.Load<GameObject>("UI/Prefab/Match/Watcher");
|
||||||
target = transform.Find("Target");
|
target = transform.Find("Target");
|
||||||
miniMap = transform.Find("MiniMap").gameObject;//小地图
|
miniMap = transform.Find("MiniMap").gameObject;//小地图
|
||||||
|
minicamera = transform.Find("MiniCamera").gameObject;
|
||||||
//进入倒计时
|
//进入倒计时
|
||||||
singleUIManager = UIObject.GetComponent<BaseUIManager>();
|
singleUIManager = UIObject.GetComponent<BaseUIManager>();
|
||||||
TrailRenderer trail = player.GetComponent<TrailRenderer>();
|
TrailRenderer trail = player.GetComponent<TrailRenderer>();
|
||||||
@@ -328,19 +342,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
App.routeResult = null;
|
App.routeResult = null;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
////异步请求mapbox画出当前路书路线图
|
|
||||||
//loadingController.DrawMapRouteAsync(mapRoute.Id);
|
|
||||||
//loadingController.AddProcess(10);
|
|
||||||
//计算上次骑行距离调整地图中心点
|
|
||||||
double endDistance = selectParamModel.EndDistance;
|
double endDistance = selectParamModel.EndDistance;
|
||||||
coordiantes = Along(endDistance);
|
coordiantes = Along(endDistance);
|
||||||
////查询排行榜
|
|
||||||
//var list = mapApi.GetRouteRanking(App.RouteIdParam, "1", 0, 10, "");
|
|
||||||
//if (list.result)
|
|
||||||
//{
|
|
||||||
// loadingController.CreateRankingList(list.data.list);
|
|
||||||
// loadingController.AddProcess(10);
|
|
||||||
//}
|
|
||||||
var shaowList = mapApi.GetShadowList(App.RouteIdParam, "", 0, 10);
|
var shaowList = mapApi.GetShadowList(App.RouteIdParam, "", 0, 10);
|
||||||
if (shaowList.result)
|
if (shaowList.result)
|
||||||
{
|
{
|
||||||
@@ -377,17 +380,23 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
//加载人物和地图以及UI界面
|
//加载人物和地图以及UI界面
|
||||||
private void InitGameObject()
|
private void InitGameObject()
|
||||||
{
|
{
|
||||||
|
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||||
|
minicamera.SetActive(true);
|
||||||
|
miniMap.SetActive(true);
|
||||||
|
#endif
|
||||||
map.gameObject.SetActive(true);
|
map.gameObject.SetActive(true);
|
||||||
player.SetActive(true);
|
player.SetActive(true);
|
||||||
UIObject.SetActive(true);
|
UIObject.SetActive(true);
|
||||||
singleUIManager = UIObject.AddComponent<SingleUIManager>();
|
singleUIManager = UIObject.AddComponent<SingleUIManager>();
|
||||||
miniMap.SetActive(true);
|
|
||||||
map.OnTileFinished += Map_OnTileFinished;
|
map.OnTileFinished += Map_OnTileFinished;
|
||||||
mapPos = map.transform.position;
|
mapPos = map.transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitRaceGameObject()
|
private void InitRaceGameObject()
|
||||||
{
|
{
|
||||||
|
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||||
|
minicamera.SetActive(true);
|
||||||
|
#endif
|
||||||
map.gameObject.SetActive(true);
|
map.gameObject.SetActive(true);
|
||||||
player.SetActive(true);
|
player.SetActive(true);
|
||||||
UIObject.SetActive(true);
|
UIObject.SetActive(true);
|
||||||
@@ -399,8 +408,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
RangeAroundTransformTileProviderOptions options = new RangeAroundTransformTileProviderOptions
|
RangeAroundTransformTileProviderOptions options = new RangeAroundTransformTileProviderOptions
|
||||||
{
|
{
|
||||||
targetTransform = target,
|
targetTransform = target,
|
||||||
visibleBuffer = 4,
|
visibleBuffer = 2,
|
||||||
disposeBuffer = 4
|
disposeBuffer = 2
|
||||||
};
|
};
|
||||||
map.SetExtent(MapExtentType.RangeAroundTransform, options);
|
map.SetExtent(MapExtentType.RangeAroundTransform, options);
|
||||||
map.SetExtentOptions(options);
|
map.SetExtentOptions(options);
|
||||||
@@ -488,7 +497,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
//初始化海拔图头像位置
|
//初始化海拔图头像位置
|
||||||
var index = GetCurrentIndex(recorderData.EndDistance);
|
var index = GetCurrentIndex(recorderData.EndDistance);
|
||||||
InitGraph(index);
|
InitGraph(index);
|
||||||
//playerController.InitGraph(index);
|
playerController.CurrentIndex = index;
|
||||||
}
|
}
|
||||||
public void InitGraph(int index)
|
public void InitGraph(int index)
|
||||||
{
|
{
|
||||||
@@ -499,10 +508,10 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
public void GameStart()
|
public void GameStart()
|
||||||
{
|
{
|
||||||
var check = CheckAnt();
|
var check = CheckAnt();
|
||||||
//#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
// check = true;
|
check = true;
|
||||||
//#endif
|
#endif
|
||||||
if (check)
|
if (check || isWatch)
|
||||||
{
|
{
|
||||||
singleUIManager.StartRide();
|
singleUIManager.StartRide();
|
||||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = true;
|
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = true;
|
||||||
@@ -513,7 +522,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = false;
|
transform.Find("UI/Panel(Clone)/ToolBarPanel/StartOrPauseButton").GetComponent<Button>().enabled = false;
|
||||||
transform.Find("UI/Panel(Clone)/ToolBarPanel/SettingButton").GetComponent<Button>().enabled = false;
|
transform.Find("UI/Panel(Clone)/ToolBarPanel/SettingButton").GetComponent<Button>().enabled = false;
|
||||||
Utils.showToast(null, "Please connect the device!", duration: int.MaxValue, isLowest: true
|
Utils.showToast(null, "Please connect the device!", duration: int.MaxValue, isLowest: true
|
||||||
, stopFunc: () => !(!CheckAnt() && !isWatch) || transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy
|
, stopFunc: () => isWatch || CheckAnt() || transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy
|
||||||
, endCallback: () =>
|
, endCallback: () =>
|
||||||
{
|
{
|
||||||
if (!transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy)
|
if (!transform.Find("UI/Panel(Clone)/SelectPlayer").gameObject.activeInHierarchy)
|
||||||
@@ -896,7 +905,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
RenderTexture.active = null; // JC: added to avoid errors
|
RenderTexture.active = null; // JC: added to avoid errors
|
||||||
GameObject.Destroy(rt);
|
GameObject.Destroy(rt);
|
||||||
// 最后将这些纹理数据,成一个图片文件
|
// 最后将这些纹理数据,成一个图片文件
|
||||||
byte[] bytes = screenShot.EncodeToPNG();
|
byte[] bytes = screenShot.EncodeToJPG();
|
||||||
|
|
||||||
//var path = Helper.GetDataDir("MapWorkoutRecords/images");
|
//var path = Helper.GetDataDir("MapWorkoutRecords/images");
|
||||||
//string filename = path + "/" + Guid.NewGuid().ToString() + ".png";
|
//string filename = path + "/" + Guid.NewGuid().ToString() + ".png";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
var nearList = MapUDPService.GetNearRiderData(pageIndex, pageSize, new double[] { playerController.Currentlatlong.x, playerController.Currentlatlong.y });
|
var nearList = MapUDPService.GetNearRiderData(pageIndex, pageSize, new double[] { playerController.Currentlatlong.x, playerController.Currentlatlong.y });
|
||||||
var mod = MapUDPService.GetNearRiderCount() % pageSize;
|
var mod = MapUDPService.GetNearRiderCount() % pageSize;
|
||||||
var pages = MapUDPService.GetNearRiderCount() / pageSize;
|
var pages = MapUDPService.GetNearRiderCount() / pageSize;
|
||||||
totalPages = mod > 0 ? pages + 1: pages;
|
totalPages = mod > 0 ? pages + 1 : pages;
|
||||||
//删除
|
//删除
|
||||||
var currentNearList = FindObjectsOfType<NearByItemScript>();
|
var currentNearList = FindObjectsOfType<NearByItemScript>();
|
||||||
foreach (var item in currentNearList)
|
foreach (var item in currentNearList)
|
||||||
@@ -54,14 +54,14 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
for (int i = 0; i < nearList.Count(); i++)
|
for (int i = 0; i < nearList.Count(); i++)
|
||||||
{
|
{
|
||||||
Create(nearList[i]);
|
Create(nearList[i], currentNearList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void Create(NearRiderModel item)
|
private void Create(NearRiderModel item, NearByItemScript[] rankingList)
|
||||||
{
|
{
|
||||||
var rankingList = FindObjectsOfType<NearByItemScript>();
|
//var rankingList = FindObjectsOfType<NearByItemScript>();
|
||||||
var nearByItemscript = rankingList.Where(c => c.UserId == item.Id).FirstOrDefault();
|
var nearByItemscript = rankingList.Where(c => c.UserId == item.Id).FirstOrDefault();
|
||||||
//如果当前有这个用户则更新没有则创建并setslibingindex
|
//如果当前有这个用户则更新没有则创建并setslibingindex
|
||||||
if (nearByItemscript == null)
|
if (nearByItemscript == null)
|
||||||
@@ -86,8 +86,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
nearByItemscript.setName(item.Name);
|
nearByItemscript.setName(item.Name);
|
||||||
nearByItemscript.setRatio(item.KGWeight + "W/KG");
|
nearByItemscript.setRatio(item.KGWeight + "W/KG");
|
||||||
nearByItemscript.setSpeed(item.Speed.ToString() + "KM/H");
|
nearByItemscript.setSpeed(item.Speed.ToString() + "KM/H");
|
||||||
nearByItemscript.setHead(item.Headimage);
|
if (cyclingController.currentPlayer.UserId == item.Id)
|
||||||
|
{
|
||||||
|
nearByItemscript.setHead(item.Headimage);
|
||||||
|
}
|
||||||
|
#if !(UNITY_IOS || UNITY_ANDROID)
|
||||||
nearByItemscript.setCountry(cyclingController.GetCountryImageByName(item.Country));
|
nearByItemscript.setCountry(cyclingController.GetCountryImageByName(item.Country));
|
||||||
|
#endif
|
||||||
nearByItemscript.setDistance(item.Near.ToString() + "KM");
|
nearByItemscript.setDistance(item.Near.ToString() + "KM");
|
||||||
nearByItemscript.transform.SetSiblingIndex((int)item.Near);
|
nearByItemscript.transform.SetSiblingIndex((int)item.Near);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
trailRenderer = FindObjectOfType<TrailRenderer>();
|
trailRenderer = FindObjectOfType<TrailRenderer>();
|
||||||
//var color7 = Resources.Load<Material>("UI/Material/color7");
|
//var color7 = Resources.Load<Material>("UI/Material/color7");
|
||||||
var Graph2 = mainController.Get3dGraph2(); //Resources.Load<Material>("UI/Material/3dGraph2");
|
var Graph2 = mainController.Get3dGraph2(); //Resources.Load<Material>("UI/Material/3dGraph2");
|
||||||
trailRenderer.materials = new Material[] { Graph2 };
|
trailRenderer.material = Graph2;//new Material[] { Graph2 };
|
||||||
trailRenderer.time = 30;
|
trailRenderer.time = 30;
|
||||||
trailRenderer.startWidth = 1f;
|
trailRenderer.startWidth = 1f;
|
||||||
trailRenderer.endWidth = 1f;
|
trailRenderer.endWidth = 1f;
|
||||||
@@ -222,7 +222,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
_directionsGO.transform.SetParent(transform);
|
_directionsGO.transform.SetParent(transform);
|
||||||
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
||||||
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
||||||
lineRender.material = Resources.Load<Material>("UI/Material/4");
|
lineRender.material = mainController.GetMaterial4(); //Resources.Load<Material>("UI/Material/4");
|
||||||
lineRender.endColor = new Color(0.1529412f, 0.8745098f, 0.8901961f, 1f);
|
lineRender.endColor = new Color(0.1529412f, 0.8745098f, 0.8901961f, 1f);
|
||||||
lineRender.startColor = new Color(0.1529412f, 0.8745098f, 0.8901961f, 1f);
|
lineRender.startColor = new Color(0.1529412f, 0.8745098f, 0.8901961f, 1f);
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
lineRender.numCornerVertices = 10;
|
lineRender.numCornerVertices = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void MoveGraphHead()
|
protected override void MoveGraphHead(bool init=false)
|
||||||
{
|
{
|
||||||
if (mainController.cyclingModel == CyclingModel.Competition)
|
if (mainController.cyclingModel == CyclingModel.Competition)
|
||||||
{
|
{
|
||||||
@@ -258,10 +258,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
headPanel.transform.SetParent(graph.transform);
|
headPanel.transform.SetParent(graph.transform);
|
||||||
headPanel.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
|
headPanel.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
|
||||||
}
|
}
|
||||||
if (CurrentIndex == 1)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
int nextIndex = CurrentIndex;
|
int nextIndex = CurrentIndex;
|
||||||
var viewIndex = chartDataSourceScript.GetViewIndex(nextIndex);
|
var viewIndex = chartDataSourceScript.GetViewIndex(nextIndex);
|
||||||
//人物移动 停止条件 到中间且线未加载完
|
//人物移动 停止条件 到中间且线未加载完
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//创建UI
|
//创建UI
|
||||||
uiObject = uipanel.transform.Find("ArrowList");
|
uiObject = uipanel.transform.Find("ArrowList");
|
||||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
||||||
|
//初始化位置
|
||||||
|
Compute();
|
||||||
|
var initPos = map.GeoToWorldPosition(currentlatlong);
|
||||||
|
initPos.y += 1.35f;//提高y轴让人物站在地图上面
|
||||||
|
transform.localPosition = initPos;
|
||||||
|
CurrentIndex = mainController.GetCurrentIndex(totalDistance);
|
||||||
|
MoveGraphHead(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
double diff = 0;
|
double diff = 0;
|
||||||
@@ -123,7 +130,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
||||||
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
||||||
//lineRender.material = Resources.Load<Material>("UI/Material/color8");
|
//lineRender.material = Resources.Load<Material>("UI/Material/color8");
|
||||||
lineRender.material = Resources.Load<Material>("UI/Material/1");
|
lineRender.material = mainController.GetMaterial1(); //Resources.Load<Material>("UI/Material/1");
|
||||||
lineRender.endColor = new Color(1, 1f, 1f, 0.65f);
|
lineRender.endColor = new Color(1, 1f, 1f, 0.65f);
|
||||||
lineRender.startColor = new Color(1, 1f, 1f, 0.65f);
|
lineRender.startColor = new Color(1, 1f, 1f, 0.65f);
|
||||||
|
|
||||||
@@ -157,7 +164,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void MoveGraphHead()
|
protected override void MoveGraphHead(bool init = false)
|
||||||
{
|
{
|
||||||
var itemIndex = chartDataSourceScript.GetViewIndex(CurrentIndex);
|
var itemIndex = chartDataSourceScript.GetViewIndex(CurrentIndex);
|
||||||
var m = graph.DataSource.GetPoint("Player 2", itemIndex);
|
var m = graph.DataSource.GetPoint("Player 2", itemIndex);
|
||||||
@@ -176,7 +183,8 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
head = headPanel.GetComponentInChildren<RawImage>();
|
head = headPanel.GetComponentInChildren<RawImage>();
|
||||||
head.texture = _reviewItemScript.GetHead();
|
head.texture = _reviewItemScript.GetHead();
|
||||||
}
|
}
|
||||||
headPanel.transform.DOMove(new Vector3(itemPosition.x, itemPosition.y, 0), 1);
|
var duration = init ? 0 : 1;
|
||||||
|
headPanel.transform.DOMove(new Vector3(itemPosition.x, itemPosition.y, 0), duration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,6 +43,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
trail.enabled = false;
|
trail.enabled = false;
|
||||||
|
|
||||||
headPanel = uipanel.transform.Find("GraphChart/HeadPanel").gameObject;
|
headPanel = uipanel.transform.Find("GraphChart/HeadPanel").gameObject;
|
||||||
|
MoveGraphHead(true);
|
||||||
}
|
}
|
||||||
TargetData targetData;
|
TargetData targetData;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -60,7 +61,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
weight = App.CurrentUser.Weight;
|
weight = App.CurrentUser.Weight;
|
||||||
bicycleWeight = App.CurrentUser.BicycleWeight;
|
bicycleWeight = App.CurrentUser.BicycleWeight;
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
power = 343;
|
power = 143;
|
||||||
#endif
|
#endif
|
||||||
mainController.TrackResistance(currentSlope * App.RideSetting.Sensitivity / 100);
|
mainController.TrackResistance(currentSlope * App.RideSetting.Sensitivity / 100);
|
||||||
}
|
}
|
||||||
@@ -134,7 +135,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
// chartDataSourceScript.InitHorizontalScrolling(index);
|
// chartDataSourceScript.InitHorizontalScrolling(index);
|
||||||
//}
|
//}
|
||||||
//移动海拔图头像
|
//移动海拔图头像
|
||||||
protected override void MoveGraphHead()
|
protected override void MoveGraphHead(bool init = false)
|
||||||
{
|
{
|
||||||
Vector3 oldPos = headPanel.transform.position;
|
Vector3 oldPos = headPanel.transform.position;
|
||||||
int nextIndex = CurrentIndex;
|
int nextIndex = CurrentIndex;
|
||||||
@@ -154,7 +155,8 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
graph.HorizontalScrolling += offset;
|
graph.HorizontalScrolling += offset;
|
||||||
}
|
}
|
||||||
headPanel.transform.DOMove(new Vector3(oldPos.x, nextPosition.y, 0), 1);
|
var duration = init ? 0 : 1;
|
||||||
|
headPanel.transform.DOMove(new Vector3(oldPos.x, nextPosition.y, 0), duration);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
break;
|
break;
|
||||||
case Model.CyclingModel.Review:
|
case Model.CyclingModel.Review:
|
||||||
singleArea.SetActive(false);
|
singleArea.SetActive(false);
|
||||||
//InitReview();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -101,12 +100,12 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
otherPlayerObj.transform.position = cyclingController.map.GeoToWorldPosition(cyclingController.Along(0));
|
otherPlayerObj.transform.position = cyclingController.map.GeoToWorldPosition(cyclingController.Along(0));
|
||||||
var otherPlayerController = otherPlayerObj.GetComponent<OtherPlayerController>();
|
var otherPlayerController = otherPlayerObj.GetComponent<OtherPlayerController>();
|
||||||
otherList.Add(otherPlayerController);
|
otherList.Add(otherPlayerController);
|
||||||
otherPlayerController.record = item.record;
|
|
||||||
|
|
||||||
otherPlayerController.Weight = cyclingController.selectPlayerDic[item.UserId].Weight;
|
|
||||||
otherPlayerController.BikeWeight = cyclingController.selectPlayerDic[item.UserId].BikeWeight;
|
|
||||||
|
|
||||||
|
otherPlayerController.record = item.record;
|
||||||
|
otherPlayerController.Weight = item.Weight;
|
||||||
|
otherPlayerController.BikeWeight = item.BikeWeight;
|
||||||
otherPlayerController.SetController(reviewItemScript);
|
otherPlayerController.SetController(reviewItemScript);
|
||||||
|
|
||||||
GameObject miniPlayer = (GameObject)Instantiate(miniMapPlayer, transform.parent.parent.parent);
|
GameObject miniPlayer = (GameObject)Instantiate(miniMapPlayer, transform.parent.parent.parent);
|
||||||
var miniController = miniPlayer.GetComponent<MiniMapPlayerController>();
|
var miniController = miniPlayer.GetComponent<MiniMapPlayerController>();
|
||||||
miniController.SetController(otherPlayerController);
|
miniController.SetController(otherPlayerController);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ using System;
|
|||||||
|
|
||||||
namespace Assets.Scenes.Ride.Scripts
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
{
|
{
|
||||||
public class RouteController : MonoBehaviour
|
public class RouteController : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
AbstractMap _map;
|
AbstractMap _map;
|
||||||
@@ -21,7 +21,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
Material _material;
|
Material _material;
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Range(1, 10)]
|
[Range(1, 10)]
|
||||||
private float UpdateFrequency = 0.1f;
|
private float UpdateFrequency = 1f;
|
||||||
|
|
||||||
private int _counter;
|
private int _counter;
|
||||||
|
|
||||||
@@ -31,33 +31,35 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
CyclingController cyclingCotroller;
|
CyclingController cyclingCotroller;
|
||||||
private bool initComplete = false;
|
private bool initComplete = false;
|
||||||
|
|
||||||
|
Material Graph2 { get; set; }
|
||||||
|
Material linematerial { get; set; }
|
||||||
|
|
||||||
protected virtual void Awake()
|
protected virtual void Awake()
|
||||||
{
|
{
|
||||||
if (_map == null)
|
if (_map == null)
|
||||||
{
|
{
|
||||||
_map = FindObjectOfType<AbstractMap>();
|
_map = FindObjectOfType<AbstractMap>();
|
||||||
}
|
}
|
||||||
// _map.OnInitialized += _map_OnInitialized; ;
|
// _map.OnInitialized += _map_OnInitialized; ;
|
||||||
//_map.OnUpdated += _map_OnUpdated; ;
|
//_map.OnUpdated += _map_OnUpdated; ;
|
||||||
|
Graph2 = Resources.Load<Material>("UI/Material/3dGraph2");
|
||||||
|
linematerial = Resources.Load<Material>("UI/Material/3");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _map_OnUpdated()
|
private void _map_OnUpdated()
|
||||||
{
|
{
|
||||||
Debug.Log("_map_OnUpdated");
|
Debug.Log("_map_OnUpdated");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _map_OnInitialized()
|
private void _map_OnInitialized()
|
||||||
{
|
{
|
||||||
Debug.Log("_map_OnInitialized");
|
Debug.Log("_map_OnInitialized");
|
||||||
CreateRoute();
|
CreateRoute();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _map_OnTileFinished(UnityTile obj)
|
private void _map_OnTileFinished(UnityTile obj)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!initComplete)
|
if (!initComplete)
|
||||||
{
|
{
|
||||||
CreateRoute(obj);
|
CreateRoute(obj);
|
||||||
@@ -94,7 +96,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
void CreateRoute(UnityTile tile)
|
void CreateRoute(UnityTile tile)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
var meshData = new MeshData();
|
//var meshData = new MeshData();
|
||||||
var dat = new List<Vector3>();
|
var dat = new List<Vector3>();
|
||||||
var path = new List<Vector3>();
|
var path = new List<Vector3>();
|
||||||
|
|
||||||
@@ -121,13 +123,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
if (diffAbs <= 200)
|
if (diffAbs <= 200)
|
||||||
{
|
{
|
||||||
//if (!dat.Contains(item))
|
//if (!dat.Contains(item))
|
||||||
dat.Add(item);
|
dat.Add(item);
|
||||||
}
|
}
|
||||||
if (diff <= 0 && diff > -200)
|
if (diff <= 0 && diff > -200)
|
||||||
{
|
{
|
||||||
item.y += 0.15f;
|
item.y += 0.15f;
|
||||||
//if (!dat.Contains(item))
|
//if (!dat.Contains(item))
|
||||||
path.Add(item);
|
path.Add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var feat = new VectorFeatureUnity();
|
var feat = new VectorFeatureUnity();
|
||||||
@@ -161,7 +163,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
bool foundTile = _map.MapVisualizer.ActiveTiles.TryGetValue(Conversions.LatitudeLongitudeToTileId(_map.CenterLatitudeLongitude.x, _map.CenterLatitudeLongitude.y, (int)_map.Zoom), out tile);
|
bool foundTile = _map.MapVisualizer.ActiveTiles.TryGetValue(Conversions.LatitudeLongitudeToTileId(_map.CenterLatitudeLongitude.x, _map.CenterLatitudeLongitude.y, (int)_map.Zoom), out tile);
|
||||||
if (foundTile)
|
if (foundTile)
|
||||||
{
|
{
|
||||||
var meshData = new MeshData();
|
//var meshData = new MeshData();
|
||||||
var dat = new List<Vector3>();
|
var dat = new List<Vector3>();
|
||||||
|
|
||||||
var mapData = cyclingCotroller.GetMapData();
|
var mapData = cyclingCotroller.GetMapData();
|
||||||
@@ -188,16 +190,16 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
if (_directionsGO != null)
|
if (_directionsGO != null)
|
||||||
{
|
{
|
||||||
_directionsGO.Destroy();
|
DestroyImmediate(_directionsGO);
|
||||||
}
|
}
|
||||||
_directionsGO = new GameObject("MapRoute");
|
_directionsGO = new GameObject("MapRoute");
|
||||||
_directionsGO.transform.parent = transform;
|
_directionsGO.transform.parent = transform;
|
||||||
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
var lineRender = _directionsGO.AddComponent<LineRenderer>();
|
||||||
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
||||||
lineRender.material = Resources.Load<Material>("UI/Material/3");
|
lineRender.material = linematerial; //Resources.Load<Material>("UI/Material/3");
|
||||||
var dat = feat.Points[0];
|
var dat = feat.Points[0];
|
||||||
ColorUtility.TryParseHtmlString("#FF2742", out Color c);
|
ColorUtility.TryParseHtmlString("#FF2742", out Color c);
|
||||||
lineRender.endColor = new Color(1,1,1,0.65f);
|
lineRender.endColor = new Color(1, 1, 1, 0.65f);
|
||||||
lineRender.startColor = new Color(1, 1, 1, 0.65f);
|
lineRender.startColor = new Color(1, 1, 1, 0.65f);
|
||||||
|
|
||||||
//设置宽度
|
//设置宽度
|
||||||
@@ -205,26 +207,26 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
lineRender.endWidth = 1.5f;
|
lineRender.endWidth = 1.5f;
|
||||||
lineRender.positionCount = dat.Count;
|
lineRender.positionCount = dat.Count;
|
||||||
lineRender.SetPositions(feat.Points[0].ToArray());
|
lineRender.SetPositions(feat.Points[0].ToArray());
|
||||||
lineRender.loop = false;
|
lineRender.loop = false;
|
||||||
lineRender.numCapVertices = 10;
|
lineRender.numCapVertices = 10;
|
||||||
//lineRender.numCornerVertices = 30;
|
//lineRender.numCornerVertices = 30;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreatPathRoute(List<Vector3> feat)
|
void CreatPathRoute(List<Vector3> feat)
|
||||||
{
|
{
|
||||||
if (_pathRoute != null)
|
if (_pathRoute != null)
|
||||||
{
|
{
|
||||||
_pathRoute.Destroy();
|
DestroyImmediate(_pathRoute);
|
||||||
}
|
}
|
||||||
_pathRoute = new GameObject("MapPathRoute");
|
_pathRoute = new GameObject("MapPathRoute");
|
||||||
_pathRoute.transform.parent = transform;
|
_pathRoute.transform.parent = transform;
|
||||||
var lineRender = _pathRoute.AddComponent<LineRenderer>();
|
var lineRender = _pathRoute.AddComponent<LineRenderer>();
|
||||||
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
//lineRender.material = new Material(Shader.Find("Sprites/Default"));
|
||||||
//var color7 = Resources.Load<Material>("UI/Material/color7");
|
//var color7 = Resources.Load<Material>("UI/Material/color7");
|
||||||
var Graph2 = Resources.Load<Material>("UI/Material/3dGraph2");
|
//var Graph2 = Resources.Load<Material>("UI/Material/3dGraph2");
|
||||||
lineRender.materials = new Material[] { Graph2 };
|
lineRender.material = Graph2;//new Material[] { Graph2 };
|
||||||
lineRender.endColor = new Color(0.9764706f, 0.1882353f, 0.5254902f, 0.65f);
|
lineRender.endColor = new Color(0.9764706f, 0.1882353f, 0.5254902f, 0.65f);
|
||||||
lineRender.startColor = new Color(0.9764706f, 0.1882353f, 0.5254902f, 0.65f);
|
lineRender.startColor = new Color(0.9764706f, 0.1882353f, 0.5254902f, 0.65f);
|
||||||
|
|
||||||
@@ -233,11 +235,11 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
lineRender.endWidth = 1f;
|
lineRender.endWidth = 1f;
|
||||||
lineRender.positionCount = feat.Count;
|
lineRender.positionCount = feat.Count;
|
||||||
lineRender.SetPositions(feat.ToArray());
|
lineRender.SetPositions(feat.ToArray());
|
||||||
lineRender.loop = false;
|
lineRender.loop = false;
|
||||||
lineRender.numCapVertices = 10;
|
lineRender.numCapVertices = 10;
|
||||||
//lineRender.numCornerVertices = 10;
|
//lineRender.numCornerVertices = 10;
|
||||||
//
|
//
|
||||||
lineRender.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
lineRender.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
||||||
lineRender.allowOcclusionWhenDynamic = false;
|
lineRender.allowOcclusionWhenDynamic = false;
|
||||||
lineRender.textureMode = LineTextureMode.Tile;
|
lineRender.textureMode = LineTextureMode.Tile;
|
||||||
lineRender.motionVectorGenerationMode = MotionVectorGenerationMode.ForceNoMotion;
|
lineRender.motionVectorGenerationMode = MotionVectorGenerationMode.ForceNoMotion;
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
using Assets.Scenes.Ride.Scripts.Model;
|
using Assets.Scenes.Ride.Scripts.Model;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
using Assets.Scripts;
|
||||||
|
using Assets.Scripts.Apis;
|
||||||
|
|
||||||
namespace Assets.Scenes.Ride.Scripts
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
{
|
{
|
||||||
@@ -29,13 +31,17 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
if (mainController.routeResult != null)
|
if (mainController.routeResult != null)
|
||||||
{
|
{
|
||||||
#region 注释伴侣骑行的重骑和继续骑行的逻辑
|
#region 注释伴侣骑行的重骑和继续骑行的逻辑
|
||||||
//if (mainController.routeResult.Mode == CyclingModel.Review.ToString())
|
if (mainController.routeResult.Mode == CyclingModel.Review.ToString())
|
||||||
//{
|
{
|
||||||
// mainController.SetCyclingModel(CyclingModel.Review);
|
mainController.SetCyclingModel(CyclingModel.Review);
|
||||||
// selectPanel.SetActive(false);
|
selectPanel.SetActive(false);
|
||||||
// var reviewFactory = reviewPanel.transform.GetComponent<ReviewFactory>();
|
//查询选中人员的骑行记录
|
||||||
// reviewFactory.Refresh();
|
MapApi mapApi = new MapApi();
|
||||||
//}
|
var rankingList = mapApi.GetRecordFileFromServer(mainController.routeResult.ContinueCyclingParam.RankingsId);
|
||||||
|
var reviewFactory = reviewPanel.transform.GetComponent<ReviewFactory>();
|
||||||
|
reviewFactory.Refresh();
|
||||||
|
reviewFactory.SetReview(rankingList);
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
if (mainController.routeResult.Mode == CyclingModel.Single.ToString())
|
if (mainController.routeResult.Mode == CyclingModel.Single.ToString())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace Assets.Scripts.UI.Control
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool showTooltip { get; set; }
|
||||||
private void BindEvent()
|
private void BindEvent()
|
||||||
{
|
{
|
||||||
//鼠标进入
|
//鼠标进入
|
||||||
@@ -113,11 +113,14 @@ namespace Assets.Scripts.UI.Control
|
|||||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||||
if (!string.IsNullOrWhiteSpace(Tooltips))
|
if (!string.IsNullOrWhiteSpace(Tooltips))
|
||||||
{
|
{
|
||||||
|
#else
|
||||||
|
if (!string.IsNullOrWhiteSpace(Tooltips) && showTooltip)
|
||||||
|
{
|
||||||
|
#endif
|
||||||
tooltips.GetComponent<CanvasGroup>().alpha = 0f;
|
tooltips.GetComponent<CanvasGroup>().alpha = 0f;
|
||||||
tooltips.SetActive(true);
|
tooltips.SetActive(true);
|
||||||
tooltips.GetComponent<CanvasGroup>().DOFade(1f, 0.2f);
|
tooltips.GetComponent<CanvasGroup>().DOFade(1f, 0.2f);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
switch (mType)
|
switch (mType)
|
||||||
{
|
{
|
||||||
case Type.Normal:
|
case Type.Normal:
|
||||||
@@ -145,8 +148,13 @@ namespace Assets.Scripts.UI.Control
|
|||||||
UIManager.AddEvent(this.gameObject, EventTriggerType.PointerExit, new UnityAction<BaseEventData>(e =>
|
UIManager.AddEvent(this.gameObject, EventTriggerType.PointerExit, new UnityAction<BaseEventData>(e =>
|
||||||
{
|
{
|
||||||
if (!this.isActiveAndEnabled) return;
|
if (!this.isActiveAndEnabled) return;
|
||||||
|
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||||
if (!string.IsNullOrWhiteSpace(Tooltips))
|
if (!string.IsNullOrWhiteSpace(Tooltips))
|
||||||
{
|
{
|
||||||
|
#else
|
||||||
|
if (!string.IsNullOrWhiteSpace(Tooltips) && showTooltip)
|
||||||
|
{
|
||||||
|
#endif
|
||||||
tooltips.SetActive(false);
|
tooltips.SetActive(false);
|
||||||
}
|
}
|
||||||
//Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
//Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||||
|
|||||||
@@ -72,8 +72,11 @@ public class ConnectDeviceModal : PFUIPanel
|
|||||||
this.Close();
|
this.Close();
|
||||||
//DestroyImmediate(this.gameObject);
|
//DestroyImmediate(this.gameObject);
|
||||||
}));
|
}));
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
deviceItem = Resources.Load("UI/Prefab/Device/Mobile/DeviceItem");
|
||||||
|
#else
|
||||||
deviceItem = Resources.Load("UI/Prefab/Device/DeviceItem");
|
deviceItem = Resources.Load("UI/Prefab/Device/DeviceItem");
|
||||||
|
#endif
|
||||||
|
|
||||||
connectBtn = container.Find("ConnectBtn").GetComponent<PfUIButton>();
|
connectBtn = container.Find("ConnectBtn").GetComponent<PfUIButton>();
|
||||||
connectBtnText = connectBtn.transform.Find("Text").GetComponent<Text>();
|
connectBtnText = connectBtn.transform.Find("Text").GetComponent<Text>();
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ public class DeviceItem : Selectable, IEventSystemHandler, IPointerClickHandler
|
|||||||
protected override void Start()
|
protected override void Start()
|
||||||
{
|
{
|
||||||
//this.currentSelectionState = SelectionState.Selected
|
//this.currentSelectionState = SelectionState.Selected
|
||||||
|
if (DeviceInfo == null)
|
||||||
|
return;
|
||||||
mText.text = DeviceInfo.Name;// + "-" + DeviceInfo.DeviceNumber;
|
mText.text = DeviceInfo.Name;// + "-" + DeviceInfo.DeviceNumber;
|
||||||
if(DeviceInfo.Network == NetworkType.ANT)
|
if(DeviceInfo.Network == NetworkType.ANT)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ public class DeviceView : MonoBehaviour
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private Sprite sprite3;
|
private Sprite sprite3;
|
||||||
|
|
||||||
|
private Button unconnectionButton;
|
||||||
|
private Button connectionButton;
|
||||||
|
|
||||||
private float timer = 1.0f;
|
private float timer = 1.0f;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@@ -69,7 +72,10 @@ public class DeviceView : MonoBehaviour
|
|||||||
searchState = unconnectionPanel.transform.Find("SearchState").GetComponent<Text>();
|
searchState = unconnectionPanel.transform.Find("SearchState").GetComponent<Text>();
|
||||||
mPairButton.SetActive(false);
|
mPairButton.SetActive(false);
|
||||||
connectionPanel = this.transform.Find("ConnectionPanel").gameObject;
|
connectionPanel = this.transform.Find("ConnectionPanel").gameObject;
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
unconnectionButton = unconnectionPanel.GetComponent<Button>();
|
||||||
|
connectionButton = connectionPanel.GetComponent<Button>();
|
||||||
|
#endif
|
||||||
var material = Instantiate(Resources.Load<Material>("UI/Material/RoundedCornersTextureMaterial"));
|
var material = Instantiate(Resources.Load<Material>("UI/Material/RoundedCornersTextureMaterial"));
|
||||||
var rect = ((RectTransform)transform).rect;
|
var rect = ((RectTransform)transform).rect;
|
||||||
material.SetVector(Shader.PropertyToID("_WidthHeightRadius"), new Vector4(rect.width, rect.height, rect.height * 0.2f, 0));
|
material.SetVector(Shader.PropertyToID("_WidthHeightRadius"), new Vector4(rect.width, rect.height, rect.height * 0.2f, 0));
|
||||||
@@ -121,42 +127,70 @@ public class DeviceView : MonoBehaviour
|
|||||||
title.text = GetTitle();
|
title.text = GetTitle();
|
||||||
|
|
||||||
connectionPanel.SetActive(false);
|
connectionPanel.SetActive(false);
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
UIManager.AddEvent(unconnectionButton.gameObject, EventTriggerType.PointerClick, new UnityAction<UnityEngine.EventSystems.BaseEventData>(e =>
|
||||||
|
{
|
||||||
|
if (!mPairButton.activeSelf)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
connectButtonClick();
|
||||||
|
}));
|
||||||
|
#endif
|
||||||
|
|
||||||
UIManager.AddEvent(mPairButton, EventTriggerType.PointerClick, new UnityAction<UnityEngine.EventSystems.BaseEventData>(e =>
|
UIManager.AddEvent(mPairButton, EventTriggerType.PointerClick, new UnityAction<UnityEngine.EventSystems.BaseEventData>(e =>
|
||||||
{
|
{
|
||||||
if (deviceModal == null)
|
connectButtonClick();
|
||||||
{
|
|
||||||
|
|
||||||
#if UNITY_IOS || UNITY_ANDROID
|
|
||||||
var obj = Resources.Load("UI/Prefab/Device/Mobile/ConnectDeviceModal");
|
|
||||||
#else
|
|
||||||
var obj = Resources.Load("UI/Prefab/Device/ConnectDeviceModal");
|
|
||||||
#endif
|
|
||||||
GameObject gameObject = (GameObject)Instantiate(obj);
|
|
||||||
deviceModal = gameObject.GetComponent<ConnectDeviceModal>();
|
|
||||||
}
|
|
||||||
deviceModal.SensorType = this.SensorType;
|
|
||||||
UIManager.Show(deviceModal, null, true);
|
|
||||||
}));
|
}));
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
UIManager.AddEvent(connectionButton.gameObject, EventTriggerType.PointerClick, new UnityEngine.Events.UnityAction<BaseEventData>(e => {
|
||||||
|
if (!connectionPanel.activeSelf)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
mDisconnectButtonClick();
|
||||||
|
}));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
UIManager.AddEvent(mDisconnectButton, EventTriggerType.PointerClick, new UnityEngine.Events.UnityAction<BaseEventData>(e => {
|
UIManager.AddEvent(mDisconnectButton, EventTriggerType.PointerClick, new UnityEngine.Events.UnityAction<BaseEventData>(e => {
|
||||||
//var device = GetDevice();
|
mDisconnectButtonClick();
|
||||||
//if(device != null && device.State == DeviceState.Connected)
|
}));
|
||||||
//{
|
|
||||||
// device.Disconnect();
|
}
|
||||||
//}
|
void connectButtonClick()
|
||||||
|
{
|
||||||
|
if (deviceModal == null)
|
||||||
|
{
|
||||||
|
|
||||||
#if UNITY_IOS || UNITY_ANDROID
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
var obj = Resources.Load("UI/Prefab/Device/Mobile/ConnectDeviceModal");
|
var obj = Resources.Load("UI/Prefab/Device/Mobile/ConnectDeviceModal");
|
||||||
#else
|
#else
|
||||||
var obj = Resources.Load("UI/Prefab/Device/ConnectDeviceModal");
|
var obj = Resources.Load("UI/Prefab/Device/ConnectDeviceModal");
|
||||||
#endif
|
#endif
|
||||||
GameObject gameObject = (GameObject)Instantiate(obj);
|
GameObject gameObject = (GameObject)Instantiate(obj);
|
||||||
deviceModal = gameObject.GetComponent<ConnectDeviceModal>();
|
deviceModal = gameObject.GetComponent<ConnectDeviceModal>();
|
||||||
deviceModal.SensorType = this.SensorType;
|
}
|
||||||
UIManager.Show(deviceModal, null, true);
|
deviceModal.SensorType = this.SensorType;
|
||||||
}));
|
UIManager.Show(deviceModal, null, true);
|
||||||
|
}
|
||||||
|
void mDisconnectButtonClick()
|
||||||
|
{
|
||||||
|
//var device = GetDevice();
|
||||||
|
//if(device != null && device.State == DeviceState.Connected)
|
||||||
|
//{
|
||||||
|
// device.Disconnect();
|
||||||
|
//}
|
||||||
|
|
||||||
|
#if UNITY_IOS || UNITY_ANDROID
|
||||||
|
var obj = Resources.Load("UI/Prefab/Device/Mobile/ConnectDeviceModal");
|
||||||
|
#else
|
||||||
|
var obj = Resources.Load("UI/Prefab/Device/ConnectDeviceModal");
|
||||||
|
#endif
|
||||||
|
GameObject gameObject = (GameObject)Instantiate(obj);
|
||||||
|
deviceModal = gameObject.GetComponent<ConnectDeviceModal>();
|
||||||
|
deviceModal.SensorType = this.SensorType;
|
||||||
|
UIManager.Show(deviceModal, null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitLogo()
|
void InitLogo()
|
||||||
@@ -252,6 +286,7 @@ public class DeviceView : MonoBehaviour
|
|||||||
else {
|
else {
|
||||||
hasDevice = App.MainDeviceAdapter.GetDevices().Any(d => d.Sensor == SensorType);
|
hasDevice = App.MainDeviceAdapter.GetDevices().Any(d => d.Sensor == SensorType);
|
||||||
}
|
}
|
||||||
|
Debug.Log(hasDevice);
|
||||||
if (hasDevice)
|
if (hasDevice)
|
||||||
{
|
{
|
||||||
mSearchButton.SetActive(false);
|
mSearchButton.SetActive(false);
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
using System;
|
using Assets.Scripts.UI.Control;
|
||||||
|
using DG.Tweening;
|
||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -9,6 +11,7 @@ public class MainNav : MonoBehaviour
|
|||||||
{
|
{
|
||||||
private GameObject exit;
|
private GameObject exit;
|
||||||
private GameObject home;
|
private GameObject home;
|
||||||
|
float delayTime = 0;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
//var material = Instantiate(Resources.Load<Material>("UI/Material/RoundedCornersTextureMaterial"));
|
//var material = Instantiate(Resources.Load<Material>("UI/Material/RoundedCornersTextureMaterial"));
|
||||||
@@ -32,8 +35,15 @@ public class MainNav : MonoBehaviour
|
|||||||
|
|
||||||
exit = this.transform.Find("Exit").gameObject;
|
exit = this.transform.Find("Exit").gameObject;
|
||||||
exit.SetActive(false);
|
exit.SetActive(false);
|
||||||
|
#if UNITY_ANDROID || UNITY_IOS
|
||||||
|
UIManager.AddEvent(transform.Find("Delay").gameObject, EventTriggerType.PointerClick, b =>
|
||||||
|
{
|
||||||
|
delayTime = 3;
|
||||||
|
transform.Find("Delay/Tooltips").gameObject.SetActive(true);
|
||||||
|
transform.Find("Delay/Tooltips").GetComponent<CanvasGroup>().DOFade(1, 0.5f);
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
//transform.Find("Delay").GetComponent<PfUIButton>().showTooltip = true;
|
||||||
UIManager.AddEvent(exit, EventTriggerType.PointerClick, (e) =>
|
UIManager.AddEvent(exit, EventTriggerType.PointerClick, (e) =>
|
||||||
{
|
{
|
||||||
UIManager.ShowConfirm("Quit", "Do you want to quit PowerFun?", ()=> {
|
UIManager.ShowConfirm("Quit", "Do you want to quit PowerFun?", ()=> {
|
||||||
@@ -76,7 +86,20 @@ public class MainNav : MonoBehaviour
|
|||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
if (delayTime < 0)
|
||||||
|
{
|
||||||
|
Debug.Log("小时");
|
||||||
|
delayTime = 0;
|
||||||
|
transform.Find("Delay/Tooltips").GetComponent<CanvasGroup>().DOFade(0, 0.5f).onComplete = ()=>
|
||||||
|
{
|
||||||
|
transform.Find("Delay/Tooltips").gameObject.SetActive(false);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else if(delayTime > 0)
|
||||||
|
{
|
||||||
|
Debug.Log(delayTime);
|
||||||
|
delayTime -= Time.deltaTime;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowExit()
|
public void ShowExit()
|
||||||
|
|||||||
@@ -43,8 +43,13 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
|||||||
}
|
}
|
||||||
float? localY = null;
|
float? localY = null;
|
||||||
MapRoute map;
|
MapRoute map;
|
||||||
public void Initial(MapRoute myMap)
|
Dictionary<string, Texture> caches;
|
||||||
|
public void Initial(MapRoute myMap, Dictionary<string, Texture> caches)
|
||||||
{
|
{
|
||||||
|
if (caches != null)
|
||||||
|
{
|
||||||
|
this.caches = caches;
|
||||||
|
}
|
||||||
map = myMap;
|
map = myMap;
|
||||||
//localY = transform.GetComponent<RectTransform>().rect.height;
|
//localY = transform.GetComponent<RectTransform>().rect.height;
|
||||||
//Debug.Log(localY);
|
//Debug.Log(localY);
|
||||||
@@ -122,8 +127,8 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
|||||||
transform.Find("BtnInfo").GetComponent<Button>().onClick.AddListener(Info);
|
transform.Find("BtnInfo").GetComponent<Button>().onClick.AddListener(Info);
|
||||||
transform.Find("BtnRide").GetComponent<Button>().onClick.AddListener(Ride);
|
transform.Find("BtnRide").GetComponent<Button>().onClick.AddListener(Ride);
|
||||||
|
|
||||||
Utils.DisplayImage(transform.Find("MapTitleImg").GetComponent<RawImage>(), myMap.CoverImage, true);
|
Utils.DisplayImageTempDict(transform.Find("MapTitleImg").GetComponent<RawImage>(), myMap.CoverImage, this.caches);
|
||||||
Utils.DisplayImage(transform.Find("MapHBImg").GetComponent<RawImage>(), myMap.AltitudeGraph, true);
|
Utils.DisplayImageTempDict(transform.Find("MapHBImg").GetComponent<RawImage>(), myMap.AltitudeGraph, this.caches);
|
||||||
|
|
||||||
SetActive4Button(false);
|
SetActive4Button(false);
|
||||||
}
|
}
|
||||||
@@ -140,6 +145,11 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
|||||||
App.MainSceneParam["Name"] = "MapListPanel";
|
App.MainSceneParam["Name"] = "MapListPanel";
|
||||||
}
|
}
|
||||||
SceneManager.LoadScene("Ride");
|
SceneManager.LoadScene("Ride");
|
||||||
|
//foreach (var item in Utils.propTextureCache)
|
||||||
|
//{
|
||||||
|
// DestroyImmediate(item.Value);
|
||||||
|
//}
|
||||||
|
//Utils.propTextureCache.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Info()
|
private void Info()
|
||||||
@@ -257,7 +267,7 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
|||||||
AltitudeGraph = model.AltitudeGraph,
|
AltitudeGraph = model.AltitudeGraph,
|
||||||
Distance = model.Distance,
|
Distance = model.Distance,
|
||||||
IsFavorite = model.IsFavorite,
|
IsFavorite = model.IsFavorite,
|
||||||
});
|
},null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Move(Vector3 position)
|
public void Move(Vector3 position)
|
||||||
|
|||||||
@@ -21,7 +21,11 @@ public class MapListController : PFUIPanel
|
|||||||
[SerializeField] GameObject content;
|
[SerializeField] GameObject content;
|
||||||
[SerializeField] GameObject scroll;
|
[SerializeField] GameObject scroll;
|
||||||
[HideInInspector] public int pageIndex = 0;
|
[HideInInspector] public int pageIndex = 0;
|
||||||
|
#if UNITY_ANDROID || UNITY_IOS
|
||||||
|
[HideInInspector] public int pageSize = 21;
|
||||||
|
#else
|
||||||
[HideInInspector] public int pageSize = 20;
|
[HideInInspector] public int pageSize = 20;
|
||||||
|
#endif
|
||||||
[HideInInspector] public string hard = "全部";
|
[HideInInspector] public string hard = "全部";
|
||||||
private Transform distanceOptions;
|
private Transform distanceOptions;
|
||||||
private Transform diffOptions;
|
private Transform diffOptions;
|
||||||
@@ -262,6 +266,7 @@ public class MapListController : PFUIPanel
|
|||||||
});
|
});
|
||||||
//sortDir.GetComponent<Button>().onClick.AddListener();
|
//sortDir.GetComponent<Button>().onClick.AddListener();
|
||||||
}
|
}
|
||||||
|
caches = new Dictionary<string, Texture>();
|
||||||
}
|
}
|
||||||
void onEndEdit()
|
void onEndEdit()
|
||||||
{
|
{
|
||||||
@@ -354,6 +359,7 @@ public class MapListController : PFUIPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Dictionary<string, Texture> caches = null;
|
||||||
void DisplayMaps(List<MapRoute> list)
|
void DisplayMaps(List<MapRoute> list)
|
||||||
{
|
{
|
||||||
if (map != null)
|
if (map != null)
|
||||||
@@ -361,7 +367,7 @@ public class MapListController : PFUIPanel
|
|||||||
foreach (var item in list)
|
foreach (var item in list)
|
||||||
{
|
{
|
||||||
var obj = Instantiate(map);
|
var obj = Instantiate(map);
|
||||||
obj.GetComponent<MapItem>().Initial(item);
|
obj.GetComponent<MapItem>().Initial(item, caches);
|
||||||
//obj.SendMessage("Initial", );
|
//obj.SendMessage("Initial", );
|
||||||
obj.transform.SetParent(content.transform);
|
obj.transform.SetParent(content.transform);
|
||||||
obj.transform.localScale = new Vector3(1, 1, 1);
|
obj.transform.localScale = new Vector3(1, 1, 1);
|
||||||
@@ -468,4 +474,12 @@ public class MapListController : PFUIPanel
|
|||||||
ResetPanel();
|
ResetPanel();
|
||||||
transform.MyDOFade();
|
transform.MyDOFade();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnDestroy()
|
||||||
|
{
|
||||||
|
caches = null;
|
||||||
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
|
Debug.Log("list empty");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
public int CompetitionId { get; set; }
|
public int CompetitionId { get; set; }
|
||||||
public int RouteId { get; set; }
|
public int RouteId { get; set; }
|
||||||
|
public string SceneName { get; set; }
|
||||||
|
|
||||||
protected override void Awake()
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
@@ -57,11 +58,17 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
Content.text = content;
|
Content.text = content;
|
||||||
CompetitionId = competitionId;
|
CompetitionId = competitionId;
|
||||||
RouteId = routeId;
|
RouteId = routeId;
|
||||||
|
SceneName = sceneName;
|
||||||
}
|
}
|
||||||
|
|
||||||
//切换到当前用户视角
|
//切换到当前用户视角
|
||||||
public void Go(BaseEventData baseEventData)
|
public void Go(BaseEventData baseEventData)
|
||||||
{
|
{
|
||||||
|
if (SceneName.Equals("Ride"))
|
||||||
|
{
|
||||||
|
var playerController = FindObjectOfType<PlayerController>();
|
||||||
|
playerController.Upload();
|
||||||
|
}
|
||||||
App.CompetitionIdList.Add(CompetitionId);
|
App.CompetitionIdList.Add(CompetitionId);
|
||||||
App.CompetionId = CompetitionId;
|
App.CompetionId = CompetitionId;
|
||||||
App.RouteIdParam = RouteId;
|
App.RouteIdParam = RouteId;
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
|||||||
}
|
}
|
||||||
public void Initial(MapCompetition mapCompetition,Transform parent,string from = "list")
|
public void Initial(MapCompetition mapCompetition,Transform parent,string from = "list")
|
||||||
{
|
{
|
||||||
|
if (parent != null)
|
||||||
|
{
|
||||||
|
this.parent = parent;
|
||||||
|
}
|
||||||
transform.GetComponent<Button>().onClick.RemoveAllListeners();
|
transform.GetComponent<Button>().onClick.RemoveAllListeners();
|
||||||
#if !(UNITY_ANDROID || UNITY_IOS)
|
#if !(UNITY_ANDROID || UNITY_IOS)
|
||||||
transform.GetComponent<Button>().onClick.AddListener(() =>
|
transform.GetComponent<Button>().onClick.AddListener(() =>
|
||||||
@@ -48,7 +52,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
|||||||
App.CompetionId = mapCompetition.Id;
|
App.CompetionId = mapCompetition.Id;
|
||||||
SceneManager.LoadScene("Ride");
|
SceneManager.LoadScene("Ride");
|
||||||
});
|
});
|
||||||
Utils.DisplayImage(transform.GetComponent<RawImage>(), mapCompetition.RouteCover, true);
|
Utils.DisplayImageTempDict(transform.GetComponent<RawImage>(), mapCompetition.RouteCover, this.parent.GetComponent<RaceScript>().caches);
|
||||||
#else
|
#else
|
||||||
if (string.IsNullOrEmpty(_from))
|
if (string.IsNullOrEmpty(_from))
|
||||||
{
|
{
|
||||||
@@ -56,14 +60,14 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
|||||||
}
|
}
|
||||||
if (_from == "list")
|
if (_from == "list")
|
||||||
{
|
{
|
||||||
Utils.DisplayImage(transform.GetComponent<RawImage>(), mapCompetition.RouteCover, true);
|
Utils.DisplayImageTempDict(transform.GetComponent<RawImage>(), mapCompetition.RouteCover, this.parent.GetComponent<RaceScript>().caches);
|
||||||
transform.GetComponent<Button>().onClick.AddListener(() =>
|
transform.GetComponent<Button>().onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
UIManager.ShowRaceDetailModal(transform,mapCompetition);
|
UIManager.ShowRaceDetailModal(transform,mapCompetition);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Utils.DisplayImage(transform.Find("AltitudeCurve").GetComponent<RawImage>(), mapCompetition.AltitudeGraph, true);
|
Utils.DisplayImageTempDict(transform.Find("AltitudeCurve").GetComponent<RawImage>(), mapCompetition.AltitudeGraph, this.parent.GetComponent<RaceScript>().caches);
|
||||||
transform.Find("InfoContainer/Text").GetComponent<Text>().SetTextWithEllipsis(mapCompetition.Title);
|
transform.Find("InfoContainer/Text").GetComponent<Text>().SetTextWithEllipsis(mapCompetition.Title);
|
||||||
transform.Find("GetReadyContainer").gameObject.SetActive(mapCompetition.Status != 4);
|
transform.Find("GetReadyContainer").gameObject.SetActive(mapCompetition.Status != 4);
|
||||||
transform.Find("GetReadyContainer-2").gameObject.SetActive(mapCompetition.Status == 1);
|
transform.Find("GetReadyContainer-2").gameObject.SetActive(mapCompetition.Status == 1);
|
||||||
@@ -91,10 +95,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
|||||||
SetButtonGroup(mapCompetition);
|
SetButtonGroup(mapCompetition);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (parent != null)
|
|
||||||
{
|
|
||||||
this.parent = parent;
|
|
||||||
}
|
|
||||||
this.mapCompetition = mapCompetition;
|
this.mapCompetition = mapCompetition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,12 +179,12 @@ public class RaceListScript : RaceScript
|
|||||||
{
|
{
|
||||||
var t = searchInput.GetComponent<InputField>().text;
|
var t = searchInput.GetComponent<InputField>().text;
|
||||||
raceName = t;
|
raceName = t;
|
||||||
//onEndEdit();
|
|
||||||
});
|
|
||||||
searchInput.GetComponent<InputField>().onEndEdit.AddListener((string s) =>
|
|
||||||
{
|
|
||||||
onEndEdit();
|
onEndEdit();
|
||||||
});
|
});
|
||||||
|
//searchInput.GetComponent<InputField>().onEndEdit.AddListener((string s) =>
|
||||||
|
//{
|
||||||
|
// onEndEdit();
|
||||||
|
//});
|
||||||
}
|
}
|
||||||
btnReturn = transform.Find("SwitchMode/BtnReturn");
|
btnReturn = transform.Find("SwitchMode/BtnReturn");
|
||||||
if (btnReturn != null)
|
if (btnReturn != null)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using Assets.Scripts;
|
using Assets.Scripts;
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -10,6 +11,8 @@ public class RaceScript : PFUIPanel
|
|||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
protected Transform currentItem { get; set; }
|
protected Transform currentItem { get; set; }
|
||||||
IEnumerator _timer { get; set; }
|
IEnumerator _timer { get; set; }
|
||||||
|
public Dictionary<string, Texture> caches { get; set; }
|
||||||
|
|
||||||
public override void Show()
|
public override void Show()
|
||||||
{
|
{
|
||||||
base.Show();
|
base.Show();
|
||||||
@@ -71,7 +74,6 @@ public class RaceScript : PFUIPanel
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(1.0f); //
|
yield return new WaitForSeconds(1.0f); //
|
||||||
Debug.Log(123);
|
|
||||||
HandleTime();
|
HandleTime();
|
||||||
//time = UIManager.Now.GetDateTime().AddSeconds(1);
|
//time = UIManager.Now.GetDateTime().AddSeconds(1);
|
||||||
}
|
}
|
||||||
@@ -138,8 +140,10 @@ public class RaceScript : PFUIPanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Awake()
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
|
base.Awake();
|
||||||
|
caches = new Dictionary<string, Texture>();
|
||||||
if (_timer == null)
|
if (_timer == null)
|
||||||
{
|
{
|
||||||
_timer = Timer();
|
_timer = Timer();
|
||||||
@@ -151,4 +155,12 @@ public class RaceScript : PFUIPanel
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnDestroy()
|
||||||
|
{
|
||||||
|
caches = null;
|
||||||
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
|
Debug.Log("list empty");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -37,6 +37,7 @@ public class ResultListController : PFUIPanel
|
|||||||
{
|
{
|
||||||
//ApiBase.SetCookie("73385F5F719B610D132C1ECF3E9143272BF15214D57ED91CD7A9DFD832407471535112AAEB8E9271F75D54FBBF2D99F18FA313C1EEA5676F5D722D7FBB07C926BEC5905591BF9AFDDC6336552DF273112C2DA1794E6FA2F465B11FECD2E82E52");
|
//ApiBase.SetCookie("73385F5F719B610D132C1ECF3E9143272BF15214D57ED91CD7A9DFD832407471535112AAEB8E9271F75D54FBBF2D99F18FA313C1EEA5676F5D722D7FBB07C926BEC5905591BF9AFDDC6336552DF273112C2DA1794E6FA2F465B11FECD2E82E52");
|
||||||
localRouteItem = Resources.Load<Transform>("UI/Prefab/ResultList/LocalRouteItem");
|
localRouteItem = Resources.Load<Transform>("UI/Prefab/ResultList/LocalRouteItem");
|
||||||
|
caches = new Dictionary<string, Texture>();
|
||||||
#if UNITY_ANDROID || UNITY_IOS
|
#if UNITY_ANDROID || UNITY_IOS
|
||||||
routeResult = Resources.Load<Transform>("UI/Prefab/ResultList/RouteItem-Mobile");
|
routeResult = Resources.Load<Transform>("UI/Prefab/ResultList/RouteItem-Mobile");
|
||||||
localRouteItem = Resources.Load<Transform>("UI/Prefab/ResultList/LocalRouteItem-Mobile");
|
localRouteItem = Resources.Load<Transform>("UI/Prefab/ResultList/LocalRouteItem-Mobile");
|
||||||
@@ -231,6 +232,8 @@ public class ResultListController : PFUIPanel
|
|||||||
Utils.showToast(gameObject, r.errMsg);
|
Utils.showToast(gameObject, r.errMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[HideInInspector]
|
||||||
|
public Dictionary<string, Texture> caches = null;
|
||||||
void DisplayRouteResult(List<JObject> list,Transform content,int index)
|
void DisplayRouteResult(List<JObject> list,Transform content,int index)
|
||||||
{
|
{
|
||||||
if (routeResult != null)
|
if (routeResult != null)
|
||||||
@@ -353,4 +356,11 @@ public class ResultListController : PFUIPanel
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
protected override void OnDestroy()
|
||||||
|
{
|
||||||
|
caches = null;
|
||||||
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
|
Debug.Log("list empty");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -130,8 +130,9 @@ public class RouteItem : MonoBehaviour
|
|||||||
public void Initial(RouteResult result,int index,Transform parent = null)
|
public void Initial(RouteResult result,int index,Transform parent = null)
|
||||||
{
|
{
|
||||||
routeResult = result;
|
routeResult = result;
|
||||||
|
Utils.DisplayImageTempDict(transform.Find("BigLeft/CoverImage").GetComponent<RawImage>(), result.RouteImage,
|
||||||
Utils.DisplayImage(transform.Find("BigLeft/CoverImage").GetComponent<RawImage>(), result.RouteImage, true);
|
parent.GetComponent<ResultListController>().caches);
|
||||||
|
//Utils.DisplayImage(transform.Find("BigLeft/CoverImage").GetComponent<RawImage>(), result.RouteImage, true);
|
||||||
|
|
||||||
left.Find("Main").Find("Name").GetComponent<Text>().text = result.RouteName;
|
left.Find("Main").Find("Name").GetComponent<Text>().text = result.RouteName;
|
||||||
left.Find("Main").Find("Time").GetComponent<Text>().text = result.CreateTime.ToString("HH:mm:ss dd-MM-yyyy");
|
left.Find("Main").Find("Time").GetComponent<Text>().text = result.CreateTime.ToString("HH:mm:ss dd-MM-yyyy");
|
||||||
@@ -249,8 +250,8 @@ public class RouteItem : MonoBehaviour
|
|||||||
UIManager.ShowConfirm("ReRide", "Ride again?", () =>
|
UIManager.ShowConfirm("ReRide", "Ride again?", () =>
|
||||||
{
|
{
|
||||||
App.RouteIdParam = routeResult.RouteId;
|
App.RouteIdParam = routeResult.RouteId;
|
||||||
App.routeResult = routeResult;
|
App.routeResult = null;//routeResult;
|
||||||
App.routeResult.ContinueCyclingParam = null;
|
//App.routeResult.ContinueCyclingParam = null;
|
||||||
RecordFromUrl();
|
RecordFromUrl();
|
||||||
SceneManager.LoadScene("Ride");
|
SceneManager.LoadScene("Ride");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ using Newtonsoft.Json.Linq;
|
|||||||
using System;
|
using System;
|
||||||
using Assets.Scenes.Ride.Scripts;
|
using Assets.Scenes.Ride.Scripts;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
public class UIManager : MonoBehaviour
|
public class UIManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
@@ -53,7 +54,21 @@ public class UIManager : MonoBehaviour
|
|||||||
return this.GetPanelInstance("HomePanel", ref this.mHomePanel);
|
return this.GetPanelInstance("HomePanel", ref this.mHomePanel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void RunOnUnityThread(Action action)
|
||||||
|
{
|
||||||
|
// is this right?
|
||||||
|
if (unityThread == Thread.CurrentThread.ManagedThreadId)
|
||||||
|
{
|
||||||
|
action();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lock (runInUpdate)
|
||||||
|
{
|
||||||
|
runInUpdate.Enqueue(action);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
private UserInfoController mUserInfoPanel;
|
private UserInfoController mUserInfoPanel;
|
||||||
public UserInfoController UserInfoPanel
|
public UserInfoController UserInfoPanel
|
||||||
{
|
{
|
||||||
@@ -362,9 +377,12 @@ public class UIManager : MonoBehaviour
|
|||||||
stack.Clear();
|
stack.Clear();
|
||||||
stack.Push(UIManager.Instance.HomePanel);
|
stack.Push(UIManager.Instance.HomePanel);
|
||||||
}
|
}
|
||||||
|
public static int unityThread;
|
||||||
|
static public Queue<Action> runInUpdate = new Queue<Action>();
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
UIManager.Instance = this;
|
UIManager.Instance = this;
|
||||||
|
unityThread = Thread.CurrentThread.ManagedThreadId;
|
||||||
stack = new Stack<PFUIPanel>();
|
stack = new Stack<PFUIPanel>();
|
||||||
loginRegOptions = new LoginRegOptions();
|
loginRegOptions = new LoginRegOptions();
|
||||||
var userInfosJson = PlayerPrefs.GetString("UserInfos");
|
var userInfosJson = PlayerPrefs.GetString("UserInfos");
|
||||||
@@ -398,7 +416,7 @@ public class UIManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (App.CurrentScene.Equals("Ride"))
|
if (App.CurrentScene.Equals("Ride"))
|
||||||
{
|
{
|
||||||
ShowRaceAlertPanel();
|
var mRaceAlertPanel = ShowRaceAlertPanel();
|
||||||
if (mRaceAlertPanel != null)
|
if (mRaceAlertPanel != null)
|
||||||
{
|
{
|
||||||
mRaceAlertPanel.Set(e.StartTime.ToLocalTime(), Now.GetDateTime(), e.title, e.SceneName, e.competitionId, e.routeId);
|
mRaceAlertPanel.Set(e.StartTime.ToLocalTime(), Now.GetDateTime(), e.title, e.SceneName, e.competitionId, e.routeId);
|
||||||
@@ -422,7 +440,16 @@ public class UIManager : MonoBehaviour
|
|||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
while (runInUpdate.Count > 0)
|
||||||
|
{
|
||||||
|
Action action = null;
|
||||||
|
lock (runInUpdate)
|
||||||
|
{
|
||||||
|
if (runInUpdate.Count > 0)
|
||||||
|
action = runInUpdate.Dequeue();
|
||||||
|
}
|
||||||
|
action?.Invoke();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//重新查询已经参赛列表
|
//重新查询已经参赛列表
|
||||||
public static void UpdateJoinCompetition()
|
public static void UpdateJoinCompetition()
|
||||||
@@ -690,9 +717,11 @@ public class UIManager : MonoBehaviour
|
|||||||
UIManager.Show(UIManager.Instance.EditUserPanel, UIManager.Instance.MainPanel);
|
UIManager.Show(UIManager.Instance.EditUserPanel, UIManager.Instance.MainPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ShowRaceAlertPanel()
|
public static RaceAlertController ShowRaceAlertPanel()
|
||||||
{
|
{
|
||||||
UIManager.Show(UIManager.Instance.RaceAlertPanel, null, true);
|
var raceAlertPanel = UIManager.Instance.RaceAlertPanel;
|
||||||
|
UIManager.Show(raceAlertPanel, null, true);
|
||||||
|
return raceAlertPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RaceAlertController ShowRaceAlertBanelPanel()
|
public static RaceAlertController ShowRaceAlertBanelPanel()
|
||||||
@@ -1045,6 +1074,8 @@ public class UIManager : MonoBehaviour
|
|||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
UIManager.Instance = null;
|
UIManager.Instance = null;
|
||||||
|
Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
}
|
}
|
||||||
public static void SwitchAccount()
|
public static void SwitchAccount()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,83 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
|
||||||
|
public class UnityMainThreadDispatcher : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private static readonly Queue<Action> _executionQueue = new Queue<Action>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Locks the queue and adds the IEnumerator to the queue
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="action">IEnumerator function that will be executed from the main thread.</param>
|
||||||
|
public void Enqueue(IEnumerator action)
|
||||||
|
{
|
||||||
|
lock (_executionQueue)
|
||||||
|
{
|
||||||
|
_executionQueue.Enqueue(() => {
|
||||||
|
StartCoroutine(action);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Locks the queue and adds the Action to the queue
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="action">function that will be executed from the main thread.</param>
|
||||||
|
public void Enqueue(Action action)
|
||||||
|
{
|
||||||
|
Enqueue(ActionWrapper(action));
|
||||||
|
}
|
||||||
|
IEnumerator ActionWrapper(Action a)
|
||||||
|
{
|
||||||
|
a();
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private static UnityMainThreadDispatcher _instance = null;
|
||||||
|
|
||||||
|
public static bool Exists()
|
||||||
|
{
|
||||||
|
return _instance != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static UnityMainThreadDispatcher Instance()
|
||||||
|
{
|
||||||
|
if (!Exists())
|
||||||
|
{
|
||||||
|
throw new Exception("UnityMainThreadDispatcher could not find the UnityMainThreadDispatcher object. Please ensure you have added the MainThreadExecutor Prefab to your scene.");
|
||||||
|
}
|
||||||
|
return _instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
if (_instance == null)
|
||||||
|
{
|
||||||
|
_instance = this;
|
||||||
|
DontDestroyOnLoad(this.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Update()
|
||||||
|
{
|
||||||
|
lock (_executionQueue)
|
||||||
|
{
|
||||||
|
while (_executionQueue.Count > 0)
|
||||||
|
{
|
||||||
|
_executionQueue.Dequeue().Invoke();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//void OnDestroy()
|
||||||
|
//{
|
||||||
|
// Debug.Log(79 + "清掉dispatch");
|
||||||
|
// _instance = null;
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 701a01d99aaa00c48a78af9bae9c2eda
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+123
-13
@@ -307,9 +307,9 @@ namespace Assets.Scripts
|
|||||||
/*删除父亲节点下的所有孩子*/
|
/*删除父亲节点下的所有孩子*/
|
||||||
|
|
||||||
/*显示网络图片*/
|
/*显示网络图片*/
|
||||||
private static Dictionary<string, Texture> propTextureCache = new Dictionary<string, Texture>();
|
public static Dictionary<string, Texture> propTextureCache = new Dictionary<string, Texture>();
|
||||||
public delegate Coroutine StartCoroutine(IEnumerator routine);
|
public delegate Coroutine StartCoroutine(IEnumerator routine);
|
||||||
public static void DisplayImage(RawImage img, string url, bool cache = false)
|
public static void DisplayImage(RawImage img, string url, bool cache = false,Dictionary<string,Texture> caches = null)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(url))
|
if (string.IsNullOrEmpty(url))
|
||||||
return;
|
return;
|
||||||
@@ -338,6 +338,32 @@ namespace Assets.Scripts
|
|||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 使用临时字典存放图片,切换页面后清除
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="img"></param>
|
||||||
|
/// <param name="url"></param>
|
||||||
|
/// <param name="caches"></param>
|
||||||
|
public static void DisplayImageTempDict(RawImage img, string url, Dictionary<string, Texture> caches = null)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(url))
|
||||||
|
return;
|
||||||
|
if (caches!=null)
|
||||||
|
{
|
||||||
|
if (caches.ContainsKey(url))
|
||||||
|
{
|
||||||
|
img.texture = caches[url];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
UIManager.Instance.StartCoroutine(DownloadImage(img, url, (texture) => {
|
||||||
|
if (caches != null && !caches.ContainsKey(url))
|
||||||
|
{
|
||||||
|
caches.Add(url, texture);
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DisplayImageAysnc(StartCoroutine startCoroutine, RawImage img, string url,Action<string> action)
|
public static void DisplayImageAysnc(StartCoroutine startCoroutine, RawImage img, string url,Action<string> action)
|
||||||
@@ -349,34 +375,53 @@ namespace Assets.Scripts
|
|||||||
|
|
||||||
static IEnumerator DownloadImage(RawImage img,string MediaUrl, Action<Texture> action = null)
|
static IEnumerator DownloadImage(RawImage img,string MediaUrl, Action<Texture> action = null)
|
||||||
{
|
{
|
||||||
UnityWebRequest request = UnityWebRequestTexture.GetTexture(MediaUrl);
|
UnityWebRequest request = UnityWebRequest.Get(MediaUrl);
|
||||||
yield return request.SendWebRequest();
|
yield return request.SendWebRequest();
|
||||||
if (request.isNetworkError || request.isHttpError)
|
if (request.isNetworkError || request.isHttpError)
|
||||||
Debug.Log(request.error);
|
Debug.Log(request.error);
|
||||||
else if(img!=null)
|
else if (img != null)
|
||||||
{
|
{
|
||||||
img.texture = ((DownloadHandlerTexture)request.downloadHandler).texture;
|
var data = request.downloadHandler.data;
|
||||||
if (action != null)
|
img.texture = Utils.GetDownloadTexture(MediaUrl, data);
|
||||||
|
if (action != null)
|
||||||
{
|
{
|
||||||
action.Invoke(img.texture);
|
action.Invoke(img.texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static Texture GetDownloadTexture(string MediaUrl, byte[] data)
|
||||||
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
var _t = new Texture2D(4, 4, TextureFormat.DXT5, false);
|
||||||
|
#else
|
||||||
|
#if UNITY_IOS
|
||||||
|
var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||||
|
Debug.Log("使用了壓縮");
|
||||||
|
#elif UNITY_ANDROID
|
||||||
|
var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||||
|
Debug.Log("使用了壓縮");
|
||||||
|
#else //pc
|
||||||
|
var _t = new Texture2D(4, 4, TextureFormat.DXT5,false);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
_t.LoadImage(data,true);
|
||||||
|
_t.name = MediaUrl;
|
||||||
|
return _t;
|
||||||
|
}
|
||||||
static IEnumerator DownloadImageCallBack(RawImage img, string MediaUrl,Action<string> action)
|
static IEnumerator DownloadImageCallBack(RawImage img, string MediaUrl,Action<string> action)
|
||||||
{
|
{
|
||||||
UnityWebRequest request = UnityWebRequestTexture.GetTexture(MediaUrl);
|
UnityWebRequest request = UnityWebRequest.Get(MediaUrl);
|
||||||
yield return request.SendWebRequest();
|
yield return request.SendWebRequest();
|
||||||
if (request.isNetworkError || request.isHttpError)
|
if (request.isNetworkError || request.isHttpError)
|
||||||
Debug.Log(request.error);
|
Debug.Log(request.error);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
img.texture = ((DownloadHandlerTexture)request.downloadHandler).texture;
|
var data = request.downloadHandler.data;
|
||||||
|
img.texture = Utils.GetDownloadTexture(MediaUrl, data);
|
||||||
action.Invoke(MediaUrl);
|
action.Invoke(MediaUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*显示网络图片*/
|
/*显示网络图片*/
|
||||||
|
|
||||||
/*获取最顶层对象*/
|
/*获取最顶层对象*/
|
||||||
public static Transform FindUpParent(Transform zi)
|
public static Transform FindUpParent(Transform zi)
|
||||||
{
|
{
|
||||||
@@ -387,10 +432,29 @@ namespace Assets.Scripts
|
|||||||
}
|
}
|
||||||
/*获取最顶层对象*/
|
/*获取最顶层对象*/
|
||||||
/*Texture相关*/
|
/*Texture相关*/
|
||||||
|
public static Texture2D DeCompress(this Texture2D source)
|
||||||
|
{
|
||||||
|
RenderTexture renderTex = RenderTexture.GetTemporary(
|
||||||
|
source.width,
|
||||||
|
source.height,
|
||||||
|
0,
|
||||||
|
RenderTextureFormat.Default,
|
||||||
|
RenderTextureReadWrite.Linear);
|
||||||
|
|
||||||
|
Graphics.Blit(source, renderTex);
|
||||||
|
RenderTexture previous = RenderTexture.active;
|
||||||
|
RenderTexture.active = renderTex;
|
||||||
|
Texture2D readableText = new Texture2D(source.width, source.height);
|
||||||
|
readableText.ReadPixels(new Rect(0, 0, renderTex.width, renderTex.height), 0, 0);
|
||||||
|
readableText.Apply();
|
||||||
|
RenderTexture.active = previous;
|
||||||
|
RenderTexture.ReleaseTemporary(renderTex);
|
||||||
|
return readableText;
|
||||||
|
}
|
||||||
public static void WriteTextureToPlayerPrefs(string tag, Texture2D tex)
|
public static void WriteTextureToPlayerPrefs(string tag, Texture2D tex)
|
||||||
{
|
{
|
||||||
// if texture is png otherwise you can use tex.EncodeToJPG().
|
// if texture is png otherwise you can use tex.EncodeToJPG().
|
||||||
byte[] texByte = tex.EncodeToPNG();
|
byte[] texByte = tex.DeCompress().EncodeToJPG();
|
||||||
|
|
||||||
// convert byte array to base64 string
|
// convert byte array to base64 string
|
||||||
string base64Tex = System.Convert.ToBase64String(texByte);
|
string base64Tex = System.Convert.ToBase64String(texByte);
|
||||||
@@ -408,8 +472,11 @@ namespace Assets.Scripts
|
|||||||
{
|
{
|
||||||
// convert it to byte array
|
// convert it to byte array
|
||||||
byte[] texByte = System.Convert.FromBase64String(base64Tex);
|
byte[] texByte = System.Convert.FromBase64String(base64Tex);
|
||||||
Texture2D tex = new Texture2D(2, 2);
|
#if UNITY_ANDROID || UNITY_IOS
|
||||||
|
Texture2D tex = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||||
|
#else
|
||||||
|
Texture2D tex = new Texture2D(4, 4, TextureFormat.DXT5,false);
|
||||||
|
#endif
|
||||||
//load texture from byte array
|
//load texture from byte array
|
||||||
if (tex.LoadImage(texByte))
|
if (tex.LoadImage(texByte))
|
||||||
{
|
{
|
||||||
@@ -603,5 +670,48 @@ namespace Assets.Scripts
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static IEnumerator StartLocation(Action<LocationInfo> action = null)
|
||||||
|
{
|
||||||
|
// Check if the user has location service enabled.
|
||||||
|
if (!Input.location.isEnabledByUser)
|
||||||
|
yield break;
|
||||||
|
|
||||||
|
// Starts the location service.
|
||||||
|
Input.location.Start();
|
||||||
|
|
||||||
|
// Waits until the location service initializes
|
||||||
|
int maxWait = 20;
|
||||||
|
while (Input.location.status == LocationServiceStatus.Initializing && maxWait > 0)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(1);
|
||||||
|
maxWait--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the service didn't initialize in 20 seconds this cancels location service use.
|
||||||
|
if (maxWait < 1)
|
||||||
|
{
|
||||||
|
Debug.Log("Timed out");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the connection failed this cancels location service use.
|
||||||
|
if (Input.location.status == LocationServiceStatus.Failed)
|
||||||
|
{
|
||||||
|
Debug.Log("Unable to determine device location");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// If the connection succeeded, this retrieves the device's current location and displays it in the Console window.
|
||||||
|
Debug.Log("Location: " + Input.location.lastData.latitude + " " + Input.location.lastData.longitude + " " + Input.location.lastData.altitude + " " + Input.location.lastData.horizontalAccuracy + " " + Input.location.lastData.timestamp);
|
||||||
|
if (action != null)
|
||||||
|
{
|
||||||
|
action.Invoke(Input.location.lastData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stops the location service if there is no need to query location updates continuously.
|
||||||
|
Input.location.Stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
"com.unity.collab-proxy": "1.2.16",
|
"com.unity.collab-proxy": "1.2.16",
|
||||||
"com.unity.ide.rider": "1.1.4",
|
"com.unity.ide.rider": "1.1.4",
|
||||||
"com.unity.ide.vscode": "1.2.3",
|
"com.unity.ide.vscode": "1.2.3",
|
||||||
|
"com.unity.performance.profile-analyzer": "1.1.1",
|
||||||
"com.unity.test-framework": "1.1.22",
|
"com.unity.test-framework": "1.1.22",
|
||||||
"com.unity.timeline": "1.2.18",
|
"com.unity.timeline": "1.2.18",
|
||||||
"com.unity.ugui": "1.0.0",
|
"com.unity.ugui": "1.0.0",
|
||||||
|
|||||||
@@ -50,6 +50,13 @@
|
|||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.cn"
|
||||||
},
|
},
|
||||||
|
"com.unity.performance.profile-analyzer": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {},
|
||||||
|
"url": "https://packages.unity.cn"
|
||||||
|
},
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.22",
|
"version": "1.1.22",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ PlayerSettings:
|
|||||||
submitAnalytics: 1
|
submitAnalytics: 1
|
||||||
usePlayerLog: 1
|
usePlayerLog: 1
|
||||||
bakeCollisionMeshes: 0
|
bakeCollisionMeshes: 0
|
||||||
forceSingleInstance: 0
|
forceSingleInstance: 1
|
||||||
useFlipModelSwapchain: 1
|
useFlipModelSwapchain: 1
|
||||||
resizableWindow: 0
|
resizableWindow: 0
|
||||||
useMacAppStoreValidation: 0
|
useMacAppStoreValidation: 0
|
||||||
@@ -133,7 +133,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 2.0.5
|
bundleVersion: 2.0.8
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
@@ -179,8 +179,8 @@ PlayerSettings:
|
|||||||
applicationIdentifier:
|
applicationIdentifier:
|
||||||
Android: com.ZhiXingPai.PowerFunUnity
|
Android: com.ZhiXingPai.PowerFunUnity
|
||||||
buildNumber:
|
buildNumber:
|
||||||
iPhone: 2.0.5.0
|
iPhone: 2.0.7.0
|
||||||
AndroidBundleVersionCode: 7
|
AndroidBundleVersionCode: 11
|
||||||
AndroidMinSdkVersion: 24
|
AndroidMinSdkVersion: 24
|
||||||
AndroidTargetSdkVersion: 30
|
AndroidTargetSdkVersion: 30
|
||||||
AndroidPreferredInstallLocation: 1
|
AndroidPreferredInstallLocation: 1
|
||||||
@@ -256,7 +256,7 @@ PlayerSettings:
|
|||||||
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
|
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
|
||||||
templatePackageId: com.unity.template.3d@4.2.8
|
templatePackageId: com.unity.template.3d@4.2.8
|
||||||
templateDefaultScene: Assets/Scenes/SampleScene.unity
|
templateDefaultScene: Assets/Scenes/SampleScene.unity
|
||||||
AndroidTargetArchitectures: 3
|
AndroidTargetArchitectures: 1
|
||||||
AndroidSplashScreenScale: 0
|
AndroidSplashScreenScale: 0
|
||||||
androidSplashScreen: {fileID: 0}
|
androidSplashScreen: {fileID: 0}
|
||||||
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
|
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
|
||||||
@@ -868,7 +868,7 @@ PlayerSettings:
|
|||||||
platformArchitecture:
|
platformArchitecture:
|
||||||
iPhone: 1
|
iPhone: 1
|
||||||
scriptingBackend:
|
scriptingBackend:
|
||||||
Android: 1
|
Android: 0
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
il2cppCompilerConfiguration:
|
il2cppCompilerConfiguration:
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
QualitySettings:
|
QualitySettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 5
|
serializedVersion: 5
|
||||||
m_CurrentQuality: 5
|
m_CurrentQuality: 2
|
||||||
m_QualitySettings:
|
m_QualitySettings:
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: Very Low
|
name: Very Low
|
||||||
@@ -18,7 +18,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 0
|
shadowmaskMode: 0
|
||||||
blendWeights: 1
|
skinWeights: 1
|
||||||
textureQuality: 1
|
textureQuality: 1
|
||||||
anisotropicTextures: 0
|
anisotropicTextures: 0
|
||||||
antiAliasing: 0
|
antiAliasing: 0
|
||||||
@@ -40,6 +40,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: Low
|
name: Low
|
||||||
@@ -53,7 +54,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 0
|
shadowmaskMode: 0
|
||||||
blendWeights: 2
|
skinWeights: 2
|
||||||
textureQuality: 0
|
textureQuality: 0
|
||||||
anisotropicTextures: 0
|
anisotropicTextures: 0
|
||||||
antiAliasing: 0
|
antiAliasing: 0
|
||||||
@@ -75,6 +76,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: Medium
|
name: Medium
|
||||||
@@ -88,7 +90,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 0
|
shadowmaskMode: 0
|
||||||
blendWeights: 2
|
skinWeights: 2
|
||||||
textureQuality: 0
|
textureQuality: 0
|
||||||
anisotropicTextures: 1
|
anisotropicTextures: 1
|
||||||
antiAliasing: 0
|
antiAliasing: 0
|
||||||
@@ -99,7 +101,7 @@ QualitySettings:
|
|||||||
vSyncCount: 1
|
vSyncCount: 1
|
||||||
lodBias: 0.7
|
lodBias: 0.7
|
||||||
maximumLODLevel: 0
|
maximumLODLevel: 0
|
||||||
streamingMipmapsActive: 0
|
streamingMipmapsActive: 1
|
||||||
streamingMipmapsAddAllCameras: 1
|
streamingMipmapsAddAllCameras: 1
|
||||||
streamingMipmapsMemoryBudget: 512
|
streamingMipmapsMemoryBudget: 512
|
||||||
streamingMipmapsRenderersPerFrame: 512
|
streamingMipmapsRenderersPerFrame: 512
|
||||||
@@ -110,6 +112,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: High
|
name: High
|
||||||
@@ -123,7 +126,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 1
|
shadowmaskMode: 1
|
||||||
blendWeights: 2
|
skinWeights: 2
|
||||||
textureQuality: 0
|
textureQuality: 0
|
||||||
anisotropicTextures: 1
|
anisotropicTextures: 1
|
||||||
antiAliasing: 0
|
antiAliasing: 0
|
||||||
@@ -145,6 +148,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: Very High
|
name: Very High
|
||||||
@@ -158,7 +162,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 1
|
shadowmaskMode: 1
|
||||||
blendWeights: 4
|
skinWeights: 4
|
||||||
textureQuality: 0
|
textureQuality: 0
|
||||||
anisotropicTextures: 2
|
anisotropicTextures: 2
|
||||||
antiAliasing: 2
|
antiAliasing: 2
|
||||||
@@ -180,6 +184,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
name: Ultra
|
name: Ultra
|
||||||
@@ -193,7 +198,7 @@ QualitySettings:
|
|||||||
shadowCascade2Split: 0.33333334
|
shadowCascade2Split: 0.33333334
|
||||||
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
|
||||||
shadowmaskMode: 1
|
shadowmaskMode: 1
|
||||||
blendWeights: 4
|
skinWeights: 4
|
||||||
textureQuality: 0
|
textureQuality: 0
|
||||||
anisotropicTextures: 2
|
anisotropicTextures: 2
|
||||||
antiAliasing: 2
|
antiAliasing: 2
|
||||||
@@ -215,6 +220,7 @@ QualitySettings:
|
|||||||
asyncUploadBufferSize: 16
|
asyncUploadBufferSize: 16
|
||||||
asyncUploadPersistentBuffer: 1
|
asyncUploadPersistentBuffer: 1
|
||||||
resolutionScalingFixedDPIFactor: 1
|
resolutionScalingFixedDPIFactor: 1
|
||||||
|
customRenderPipeline: {fileID: 0}
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
m_PerPlatformDefaultQuality:
|
m_PerPlatformDefaultQuality:
|
||||||
Android: 2
|
Android: 2
|
||||||
|
|||||||
Reference in new issue
Block a user