Merge branch 'dev_lishuo' into dev
# Conflicts: # .gitignore # Assets/Scenes/Ride/Scripts/SelectPlayerFactory.cs
This commit is contained in:
commit
a7ea02f70a
1
.gitignore
vendored
1
.gitignore
vendored
@ -89,4 +89,5 @@ Assets/Resources/Sound.meta
|
|||||||
Assets/MapWorkoutRecords
|
Assets/MapWorkoutRecords
|
||||||
Assets/Mapbox/User
|
Assets/Mapbox/User
|
||||||
Assets/Mapbox/User.meta
|
Assets/Mapbox/User.meta
|
||||||
|
Packages/packages-lock.json
|
||||||
GPUCache
|
GPUCache
|
||||||
|
|||||||
BIN
Assets/Resources/Images/Ride/180-4.png
Normal file
BIN
Assets/Resources/Images/Ride/180-4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
104
Assets/Resources/Images/Ride/180-4.png.meta
Normal file
104
Assets/Resources/Images/Ride/180-4.png.meta
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e07adf02a73867743949dd36e7f9e063
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 11
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -100
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: -1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Resources/Images/Ride/180-5.png
Normal file
BIN
Assets/Resources/Images/Ride/180-5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
104
Assets/Resources/Images/Ride/180-5.png.meta
Normal file
104
Assets/Resources/Images/Ride/180-5.png.meta
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0debc94c2a8d76d44ac15330e14f5d71
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 11
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: -1
|
||||||
|
aniso: -1
|
||||||
|
mipBias: -100
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: -1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 4f05d75ce4fddbb4785a5a8fa4f14a8e
|
guid: 8208f8b53f7e57448be43b690ca06014
|
||||||
TextureImporter:
|
TextureImporter:
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable: []
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
|
|||||||
@ -60,7 +60,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.5019608}
|
m_Color: {r: 0.4509804, g: 0.4509804, b: 0.47843137, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
@ -148,7 +148,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.5019608}
|
m_Color: {r: 1, g: 1, b: 1, a: 0.8}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
|
|||||||
336
Assets/Resources/UI/Prefab/Ride/JoinMessagePanel.prefab
Normal file
336
Assets/Resources/UI/Prefab/Ride/JoinMessagePanel.prefab
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &4231232458495042171
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4231232458495042148}
|
||||||
|
- component: {fileID: 4231232458495042151}
|
||||||
|
- component: {fileID: 4231232458495042150}
|
||||||
|
- component: {fileID: 4231232458495042149}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: RawImage
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4231232458495042148
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458495042171}
|
||||||
|
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: 4231232458625201077}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 32, y: 0}
|
||||||
|
m_SizeDelta: {x: 24, y: 24}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4231232458495042151
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458495042171}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4231232458495042150
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458495042171}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, 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_Texture: {fileID: 0}
|
||||||
|
m_UVRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
--- !u!114 &4231232458495042149
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458495042171}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 12
|
||||||
|
--- !u!1 &4231232458617694124
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4231232458617694125}
|
||||||
|
- component: {fileID: 4231232458617694127}
|
||||||
|
- component: {fileID: 4231232458617694126}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Message
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4231232458617694125
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458617694124}
|
||||||
|
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: 4231232458625201077}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 243, y: 0}
|
||||||
|
m_SizeDelta: {x: 114, y: 19}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4231232458617694127
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458617694124}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4231232458617694126
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458617694124}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.61960787, g: 0.61960787, b: 0.6784314, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: '
|
||||||
|
|
||||||
|
'
|
||||||
|
--- !u!1 &4231232458625201076
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4231232458625201077}
|
||||||
|
- component: {fileID: 4231232458625201072}
|
||||||
|
- component: {fileID: 4231232458625201079}
|
||||||
|
- component: {fileID: 4231232458625201078}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: JoinMessagePanel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4231232458625201077
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458625201076}
|
||||||
|
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:
|
||||||
|
- {fileID: 4231232458495042148}
|
||||||
|
- {fileID: 4231232459202437353}
|
||||||
|
- {fileID: 4231232458617694125}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
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: 320, y: 48}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4231232458625201072
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458625201076}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4231232458625201079
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458625201076}
|
||||||
|
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: 0.13725491, g: 0.13725491, b: 0.1764706, a: 0.8}
|
||||||
|
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
|
||||||
|
--- !u!114 &4231232458625201078
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232458625201076}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 24
|
||||||
|
--- !u!1 &4231232459202437352
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4231232459202437353}
|
||||||
|
- component: {fileID: 4231232459202437355}
|
||||||
|
- component: {fileID: 4231232459202437354}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Name
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4231232459202437353
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232459202437352}
|
||||||
|
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: 4231232458625201077}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 117, y: 0.00000023841858}
|
||||||
|
m_SizeDelta: {x: 126, y: 19}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4231232459202437355
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232459202437352}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4231232459202437354
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4231232459202437352}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, 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_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 70e220ca43f55b34c98a4aa2ae209829
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -420,7 +420,7 @@ RectTransform:
|
|||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 5.700012, y: -2.899994}
|
m_AnchoredPosition: {x: 5.700012, y: -2.899994}
|
||||||
m_SizeDelta: {x: 232, y: 53}
|
m_SizeDelta: {x: 232, y: 57}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &5549514346831226106
|
--- !u!222 &5549514346831226106
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|||||||
90
Assets/Resources/UI/Prefab/Ride/OnlineArrow.prefab
Normal file
90
Assets/Resources/UI/Prefab/Ride/OnlineArrow.prefab
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7236410709081266666
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7236410709081266669}
|
||||||
|
- component: {fileID: 7236410709081266670}
|
||||||
|
- component: {fileID: 7236410709081266671}
|
||||||
|
- component: {fileID: 7236410709081266668}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: OnlineArrow
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7236410709081266669
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7236410709081266666}
|
||||||
|
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: 0}
|
||||||
|
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: 16, y: 16}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7236410709081266670
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7236410709081266666}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7236410709081266671
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7236410709081266666}
|
||||||
|
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: 0.15294118, g: 0.8745098, b: 0.8901961, a: 1}
|
||||||
|
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!114 &7236410709081266668
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7236410709081266666}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 8
|
||||||
7
Assets/Resources/UI/Prefab/Ride/OnlineArrow.prefab.meta
Normal file
7
Assets/Resources/UI/Prefab/Ride/OnlineArrow.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0848f2f206cd95049964a062cf734ee8
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
176
Assets/Resources/UI/Prefab/Ride/OnlineHeadPanel.prefab
Normal file
176
Assets/Resources/UI/Prefab/Ride/OnlineHeadPanel.prefab
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &515512715299283613
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 515512715299283612}
|
||||||
|
- component: {fileID: 515512715299283609}
|
||||||
|
- component: {fileID: 515512715299283614}
|
||||||
|
- component: {fileID: 515512715299283615}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: OnlineHeadPanel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &515512715299283612
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715299283613}
|
||||||
|
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:
|
||||||
|
- {fileID: 515512715492064071}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
|
m_AnchoredPosition: {x: -14, y: 14}
|
||||||
|
m_SizeDelta: {x: 25, y: 25}
|
||||||
|
m_Pivot: {x: 0, y: 0}
|
||||||
|
--- !u!222 &515512715299283609
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715299283613}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &515512715299283614
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715299283613}
|
||||||
|
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: 0.15294118, g: 0.8745098, b: 0.8901961, a: 1}
|
||||||
|
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
|
||||||
|
--- !u!114 &515512715299283615
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715299283613}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 12.5
|
||||||
|
--- !u!1 &515512715492064068
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 515512715492064071}
|
||||||
|
- component: {fileID: 515512715492064064}
|
||||||
|
- component: {fileID: 515512715492064065}
|
||||||
|
- component: {fileID: 515512715492064070}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Head
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &515512715492064071
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715492064068}
|
||||||
|
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: 515512715299283612}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
|
m_AnchoredPosition: {x: 2.0000305, y: 2.0000143}
|
||||||
|
m_SizeDelta: {x: 21, y: 21}
|
||||||
|
m_Pivot: {x: 0, y: 0}
|
||||||
|
--- !u!222 &515512715492064064
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715492064068}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &515512715492064065
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715492064068}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, 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_Texture: {fileID: 0}
|
||||||
|
m_UVRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
--- !u!114 &515512715492064070
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 515512715492064068}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 10.5
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e79ebb2e2ce6e504fb1d3b44157fd5b5
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
413
Assets/Resources/UI/Prefab/Ride/OnlineInfoPanel.prefab
Normal file
413
Assets/Resources/UI/Prefab/Ride/OnlineInfoPanel.prefab
Normal file
@ -0,0 +1,413 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &8877223148508069543
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8877223148508069542}
|
||||||
|
- component: {fileID: 8877223148508069540}
|
||||||
|
- component: {fileID: 8877223148508069541}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Distance
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8877223148508069542
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148508069543}
|
||||||
|
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: 8877223148509276862}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 67.5, y: -33}
|
||||||
|
m_SizeDelta: {x: 43, y: 14}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8877223148508069540
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148508069543}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8877223148508069541
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148508069543}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.9764706, g: 0.1882353, b: 0.5254902, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 10
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 1
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 1
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
|
--- !u!1 &8877223148509276863
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8877223148509276862}
|
||||||
|
- component: {fileID: 8877223148509276859}
|
||||||
|
- component: {fileID: 8877223148509276860}
|
||||||
|
- component: {fileID: 8877223148509276861}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: OnlineInfoPanel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8877223148509276862
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148509276863}
|
||||||
|
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:
|
||||||
|
- {fileID: 8877223148630784879}
|
||||||
|
- {fileID: 8877223148939721186}
|
||||||
|
- {fileID: 8877223148508069542}
|
||||||
|
- {fileID: 8877223149740740656}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
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: 255, y: 48}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8877223148509276859
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148509276863}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8877223148509276860
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148509276863}
|
||||||
|
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: 0.13725491, g: 0.13725491, b: 0.1764706, a: 0.8}
|
||||||
|
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
|
||||||
|
--- !u!114 &8877223148509276861
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148509276863}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 24
|
||||||
|
--- !u!1 &8877223148630784880
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8877223148630784879}
|
||||||
|
- component: {fileID: 8877223148630784876}
|
||||||
|
- component: {fileID: 8877223148630784877}
|
||||||
|
- component: {fileID: 8877223148630784878}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Head
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8877223148630784879
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148630784880}
|
||||||
|
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: 8877223148509276862}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 25, y: -24}
|
||||||
|
m_SizeDelta: {x: 30, y: 30}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8877223148630784876
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148630784880}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8877223148630784877
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148630784880}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, 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_Texture: {fileID: 0}
|
||||||
|
m_UVRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
--- !u!114 &8877223148630784878
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148630784880}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 15
|
||||||
|
--- !u!1 &8877223148939721187
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8877223148939721186}
|
||||||
|
- component: {fileID: 8877223148939721184}
|
||||||
|
- component: {fileID: 8877223148939721185}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Name
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8877223148939721186
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148939721187}
|
||||||
|
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: 8877223148509276862}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 141, y: -17.5}
|
||||||
|
m_SizeDelta: {x: 190, y: 19}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8877223148939721184
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148939721187}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8877223148939721185
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223148939721187}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
|
--- !u!1 &8877223149740740657
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8877223149740740656}
|
||||||
|
- component: {fileID: 8877223149740740654}
|
||||||
|
- component: {fileID: 8877223149740740655}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: WKG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8877223149740740656
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223149740740657}
|
||||||
|
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: 8877223148509276862}
|
||||||
|
m_RootOrder: 3
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 123, y: -33}
|
||||||
|
m_SizeDelta: {x: 48, y: 14}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8877223149740740654
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223149740740657}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &8877223149740740655
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8877223149740740657}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.43137255, g: 0.43137255, b: 0.49019608, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 10
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 1
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 76b8dcbf09b07fe4185617d5e2add8d8
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
120
Assets/Resources/UI/Prefab/Ride/OnlinePlayer.prefab
Normal file
120
Assets/Resources/UI/Prefab/Ride/OnlinePlayer.prefab
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1056360222971152080
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1056360222971152087}
|
||||||
|
- component: {fileID: 1056360222971152091}
|
||||||
|
- component: {fileID: 1056360222971152084}
|
||||||
|
- component: {fileID: 1056360222971152085}
|
||||||
|
- component: {fileID: 3346376099031073908}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: OnlinePlayer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1056360222971152087
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1056360222971152080}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1.5, y: 1.5, z: 1.5}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &1056360222971152091
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1056360222971152080}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &1056360222971152084
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1056360222971152080}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
--- !u!135 &1056360222971152085
|
||||||
|
SphereCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1056360222971152080}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 0.5
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &3346376099031073908
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1056360222971152080}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 281c3f68a13a427499876dec554c3223, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
character: {fileID: 1056360222971152080}
|
||||||
|
characterAnimator: {fileID: 0}
|
||||||
|
nextPos: {x: 0, y: 0, z: 0}
|
||||||
|
stopRecord: 0
|
||||||
|
CurrentIndex: 0
|
||||||
|
CurrentDistance: 0
|
||||||
|
NextSlopeTotalDistance: 0
|
||||||
|
PreElevation: 0
|
||||||
|
PreSlope: 0
|
||||||
|
currentRotation: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
currentPos: {x: 0, y: 0, z: 0}
|
||||||
|
_playerController: {fileID: 0}
|
||||||
7
Assets/Resources/UI/Prefab/Ride/OnlinePlayer.prefab.meta
Normal file
7
Assets/Resources/UI/Prefab/Ride/OnlinePlayer.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 202ff57cf0315554eb1aceaa59f6ef54
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
90
Assets/Resources/UI/Prefab/Ride/ReviewArrow.prefab
Normal file
90
Assets/Resources/UI/Prefab/Ride/ReviewArrow.prefab
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6493213265088056325
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6493213265088056322}
|
||||||
|
- component: {fileID: 6493213265088056321}
|
||||||
|
- component: {fileID: 6493213265088056320}
|
||||||
|
- component: {fileID: 6493213265088056323}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: ReviewArrow
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &6493213265088056322
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6493213265088056325}
|
||||||
|
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: 0}
|
||||||
|
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: 16, y: 16}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &6493213265088056321
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6493213265088056325}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &6493213265088056320
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6493213265088056325}
|
||||||
|
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: 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!114 &6493213265088056323
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6493213265088056325}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 8
|
||||||
7
Assets/Resources/UI/Prefab/Ride/ReviewArrow.prefab.meta
Normal file
7
Assets/Resources/UI/Prefab/Ride/ReviewArrow.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5593283e67268a240b0a77d10d604966
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
413
Assets/Resources/UI/Prefab/Ride/ReviewInfoPanel.prefab
Normal file
413
Assets/Resources/UI/Prefab/Ride/ReviewInfoPanel.prefab
Normal file
@ -0,0 +1,413 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7819578903072407235
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7819578903072407234}
|
||||||
|
- component: {fileID: 7819578903072407232}
|
||||||
|
- component: {fileID: 7819578903072407233}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Name
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7819578903072407234
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903072407235}
|
||||||
|
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: 7819578903637061022}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 134.00006, y: -17.5}
|
||||||
|
m_SizeDelta: {x: 136.00003, y: 19}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7819578903072407232
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903072407235}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7819578903072407233
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903072407235}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
|
--- !u!1 &7819578903506910288
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7819578903506910287}
|
||||||
|
- component: {fileID: 7819578903506910284}
|
||||||
|
- component: {fileID: 7819578903506910285}
|
||||||
|
- component: {fileID: 7819578903506910286}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Head
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7819578903506910287
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903506910288}
|
||||||
|
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: 7819578903637061022}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 45, y: 0}
|
||||||
|
m_SizeDelta: {x: 30, y: 30}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7819578903506910284
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903506910288}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7819578903506910285
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903506910288}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, 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_Texture: {fileID: 0}
|
||||||
|
m_UVRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
--- !u!114 &7819578903506910286
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903506910288}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 15
|
||||||
|
--- !u!1 &7819578903631722887
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7819578903631722886}
|
||||||
|
- component: {fileID: 7819578903631722884}
|
||||||
|
- component: {fileID: 7819578903631722885}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Distance
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7819578903631722886
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903631722887}
|
||||||
|
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: 7819578903637061022}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 87.5, y: -33}
|
||||||
|
m_SizeDelta: {x: 43, y: 14}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7819578903631722884
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903631722887}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7819578903631722885
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903631722887}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.9764706, g: 0.1882353, b: 0.5254902, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 1db9e217733971041be26b076fda6083, type: 3}
|
||||||
|
m_FontSize: 10
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 1
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 1
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
|
--- !u!1 &7819578903637061023
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7819578903637061022}
|
||||||
|
- component: {fileID: 7819578903637061019}
|
||||||
|
- component: {fileID: 7819578903637061020}
|
||||||
|
- component: {fileID: 7819578903637061021}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: ReviewInfoPanel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7819578903637061022
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903637061023}
|
||||||
|
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:
|
||||||
|
- {fileID: 7819578903506910287}
|
||||||
|
- {fileID: 7819578903072407234}
|
||||||
|
- {fileID: 7819578903631722886}
|
||||||
|
- {fileID: 7819578904410199824}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
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: 202, y: 48}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7819578903637061019
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903637061023}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7819578903637061020
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903637061023}
|
||||||
|
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: 0.13725491, g: 0.13725491, b: 0.1764706, a: 0.8}
|
||||||
|
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
|
||||||
|
--- !u!114 &7819578903637061021
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578903637061023}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
radius: 24
|
||||||
|
--- !u!1 &7819578904410199825
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7819578904410199824}
|
||||||
|
- component: {fileID: 7819578904410199822}
|
||||||
|
- component: {fileID: 7819578904410199823}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: WKG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7819578904410199824
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578904410199825}
|
||||||
|
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: 7819578903637061022}
|
||||||
|
m_RootOrder: 3
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 135, y: -33}
|
||||||
|
m_SizeDelta: {x: 48, y: 14}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7819578904410199822
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578904410199825}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7819578904410199823
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7819578904410199825}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.43137255, g: 0.43137255, b: 0.49019608, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 10
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 1
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cb06638281bae4d419bc3a08e84788dc
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
Animator characterAnimator;
|
Animator characterAnimator;
|
||||||
|
|
||||||
AbstractMap map;
|
protected AbstractMap map;
|
||||||
//AbstractMap map;
|
//AbstractMap map;
|
||||||
|
|
||||||
#region 动画控制参数
|
#region 动画控制参数
|
||||||
@ -38,7 +38,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//public bool isQuit;//true 中途退出 或者到达终点
|
//public bool isQuit;//true 中途退出 或者到达终点
|
||||||
protected bool isMajor;//是否是主人公
|
protected bool isMajor;//是否是主人公
|
||||||
protected MapDataModel mapData;
|
protected MapDataModel mapData;
|
||||||
protected int userId;
|
//protected int userId;
|
||||||
protected DateTime startTime;//开始骑行时间
|
protected DateTime startTime;//开始骑行时间
|
||||||
protected DateTime endTime;//结束骑行时间
|
protected DateTime endTime;//结束骑行时间
|
||||||
protected double weight;//体重
|
protected double weight;//体重
|
||||||
@ -59,7 +59,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
protected double totalClimb;
|
protected double totalClimb;
|
||||||
|
|
||||||
public double TotalClimb { get => totalClimb; }
|
public double TotalClimb { get => totalClimb; }
|
||||||
public int UserId { get => userId; }
|
public int UserId { set; get; }//{ get => userId; }
|
||||||
public double Speed { get => speed; }
|
public double Speed { get => speed; }
|
||||||
public double Power { get => power; }
|
public double Power { get => power; }
|
||||||
public double Cadance { get => cadance; }
|
public double Cadance { get => cadance; }
|
||||||
@ -85,6 +85,11 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
Excute();
|
Excute();
|
||||||
|
AfterExcute();
|
||||||
|
}
|
||||||
|
protected virtual void AfterExcute()
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 骑行逻辑
|
#region 骑行逻辑
|
||||||
@ -105,7 +110,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
timer -= Time.deltaTime;
|
timer -= Time.deltaTime;
|
||||||
if (timer <= 0)//定时器 一秒执行一次
|
if (timer <= 0)//定时器 一秒执行一次
|
||||||
{
|
{
|
||||||
SendTcp();
|
BeforeRun();
|
||||||
Run();
|
Run();
|
||||||
timer = 1.0f;
|
timer = 1.0f;
|
||||||
}
|
}
|
||||||
@ -126,12 +131,12 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
|
|
||||||
//开始骑行
|
//开始骑行
|
||||||
if (mainController.isStart)
|
if (GetStart())
|
||||||
{
|
{
|
||||||
|
//计算累计爬升
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
{
|
{
|
||||||
totalClimb = 0;
|
totalClimb = 0;
|
||||||
//计算累计爬升
|
|
||||||
for (int i = 1; i <= index; i++)
|
for (int i = 1; i <= index; i++)
|
||||||
{
|
{
|
||||||
var diff = mapData.List[i].Elevation - mapData.List[i - 1].Elevation;
|
var diff = mapData.List[i].Elevation - mapData.List[i - 1].Elevation;
|
||||||
@ -155,17 +160,22 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//数据处理
|
//数据处理
|
||||||
|
|
||||||
nextPos = map.GeoToWorldPosition(currentlatlong);//下一个点
|
nextPos = map.GeoToWorldPosition(currentlatlong);//下一个点
|
||||||
nextPos.y += 1.15f;//提高y轴让人物站在地图上面
|
nextPos.y += 1.35f;//提高y轴让人物站在地图上面
|
||||||
prePos = transform.localPosition;//当前点
|
prePos = transform.localPosition;//当前点
|
||||||
thisRotation = transform.localRotation;
|
thisRotation = transform.localRotation;
|
||||||
//移动动画控制
|
//移动动画控制
|
||||||
if (distance > 0)
|
//if (distance > 0)
|
||||||
{
|
{
|
||||||
StartCoroutine(MoveTo());//移动
|
StartCoroutine(MoveTo());//移动
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected virtual void SendTcp()
|
//游戏开始开关
|
||||||
|
protected virtual bool GetStart()
|
||||||
|
{
|
||||||
|
return mainController.isStart;
|
||||||
|
}
|
||||||
|
protected virtual void BeforeRun()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -225,8 +235,6 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
nextSlopeDistance = sumDistance - totalDistance * 1000;
|
nextSlopeDistance = sumDistance - totalDistance * 1000;
|
||||||
NextSlopeTotalDistance = pointList[nextIndex].Distance;
|
NextSlopeTotalDistance = pointList[nextIndex].Distance;
|
||||||
currentSlopeDistance = CurrentDistance-( totalDistance * 1000 - (sumDistance - pointList[index].Distance));
|
currentSlopeDistance = CurrentDistance-( totalDistance * 1000 - (sumDistance - pointList[index].Distance));
|
||||||
//人物初始化角度控制
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public double PreElevation;
|
public double PreElevation;
|
||||||
public double PreSlope;
|
public double PreSlope;
|
||||||
|
|||||||
@ -17,6 +17,8 @@ using Assets.Scripts;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
|
using Assets.Scenes.Ride.Scripts.Model.RiderModels;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
public class CyclingController : DeviceServiceMonoBase
|
public class CyclingController : DeviceServiceMonoBase
|
||||||
{
|
{
|
||||||
@ -50,7 +52,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
LoadingController loadingController;
|
LoadingController loadingController;
|
||||||
private async Task Login()
|
private async Task Login()
|
||||||
{
|
{
|
||||||
var result = await new UserApi().Login("13115011550", "laozhong", "");
|
var result = await new UserApi().Login("15261826280", "123456", "");
|
||||||
App.CurrentUser = result.data;
|
App.CurrentUser = result.data;
|
||||||
}
|
}
|
||||||
GameObject miniMap;
|
GameObject miniMap;
|
||||||
@ -77,6 +79,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
{
|
{
|
||||||
UIManager.Instance.MainPanel = this.transform.Find("SingleUI/Panel").GetComponent<PFUIPanel>();
|
UIManager.Instance.MainPanel = this.transform.Find("SingleUI/Panel").GetComponent<PFUIPanel>();
|
||||||
UIManager.Instance.ModalsPanel = this.transform.Find("SingleUI/ModalPanel").GetComponent<PFUIPanel>();
|
UIManager.Instance.ModalsPanel = this.transform.Find("SingleUI/ModalPanel").GetComponent<PFUIPanel>();
|
||||||
|
onlineUserPrefab = Resources.Load<GameObject>("UI/Prefab/Ride/OnlinePlayer");
|
||||||
|
miniMapPlayerPrefab = Resources.Load<GameObject>("UI/Prefab/Ride/MiniMapPlayer");
|
||||||
target = transform.Find("Target");
|
target = transform.Find("Target");
|
||||||
//进入倒计时
|
//进入倒计时
|
||||||
singleUIManager = UIObject.GetComponent<SingleUIManager>();
|
singleUIManager = UIObject.GetComponent<SingleUIManager>();
|
||||||
@ -240,7 +244,75 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
singleUIManager.ContinueRide();
|
singleUIManager.ContinueRide();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region
|
#region TCP相关
|
||||||
|
|
||||||
|
public void TcpHandler()
|
||||||
|
{
|
||||||
|
if (cyclingController != null)
|
||||||
|
{
|
||||||
|
//tcp数据传输
|
||||||
|
cyclingController.Run(null);
|
||||||
|
//在线人物或比赛人物渲染
|
||||||
|
ShowOnlineUsers();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
List<OnlinePlayerController> otherList = new List<OnlinePlayerController>();
|
||||||
|
GameObject onlineUserPrefab;
|
||||||
|
GameObject miniMapPlayerPrefab;
|
||||||
|
|
||||||
|
private void ShowOnlineUsers()
|
||||||
|
{
|
||||||
|
var onlineRiders = cyclingController.riders;
|
||||||
|
List<OnlinePlayerController> currentOnlineUserList = new List<OnlinePlayerController>();
|
||||||
|
currentOnlineUserList.AddRange(FindObjectsOfType<OnlinePlayerController>());
|
||||||
|
//新增或者更新
|
||||||
|
foreach (var item in onlineRiders)
|
||||||
|
{
|
||||||
|
var onlineRider = item as OnlineRiderModel;
|
||||||
|
var currentUser = currentOnlineUserList.Where(c => c.UserId == item.UserId).FirstOrDefault();
|
||||||
|
var onlineDistance = onlineRider.EndDistance - onlineRider.PreDistance;
|
||||||
|
var onlineTotalDistance = onlineRider.EndDistance;
|
||||||
|
if (currentUser == null)
|
||||||
|
{
|
||||||
|
//for (int i = 0; i < 100; i++)
|
||||||
|
|
||||||
|
//大地图人物
|
||||||
|
GameObject otherPlayerObj = (GameObject)Instantiate(onlineUserPrefab, transform);
|
||||||
|
otherPlayerObj.transform.position = map.GeoToWorldPosition(Along(onlineTotalDistance));
|
||||||
|
var onlinePlayerController = otherPlayerObj.GetComponent<OnlinePlayerController>();
|
||||||
|
otherList.Add(onlinePlayerController);
|
||||||
|
onlinePlayerController.UserId = onlineRider.UserId;
|
||||||
|
//onlinePlayerController.SetDistance(onlineDistance);
|
||||||
|
onlinePlayerController.SetTotalDistance(onlineTotalDistance, onlineDistance);
|
||||||
|
onlinePlayerController.SetHead(onlineRider.WxHeadImg);
|
||||||
|
//小地图人物
|
||||||
|
GameObject miniPlayer = (GameObject)Instantiate(miniMapPlayerPrefab, transform);
|
||||||
|
var miniController = miniPlayer.GetComponent<MiniMapPlayerController>();
|
||||||
|
miniController.SetController(onlinePlayerController);
|
||||||
|
EventQueueSystem.QueueEvent(new JoinMessageEvent(onlineRider.NickName, onlineRider.WxHeadImg));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//currentUser.SetDistance(onlineDistance);
|
||||||
|
currentUser.SetTotalDistance(onlineTotalDistance, onlineDistance);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
////移除
|
||||||
|
//foreach (var item in currentOnlineUserList)
|
||||||
|
//{
|
||||||
|
// var currentItem = onlineRiders.Where(c => c.UserId == item.UserId).FirstOrDefault();
|
||||||
|
// if (currentItem == null)
|
||||||
|
// {
|
||||||
|
// item.RemoveSelf();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 视角切换
|
||||||
|
|
||||||
|
public AbstractMap map3d;
|
||||||
public bool Is3dView;
|
public bool Is3dView;
|
||||||
public void ChangeMapImageStyle(GameObject arrowGameObj)
|
public void ChangeMapImageStyle(GameObject arrowGameObj)
|
||||||
{
|
{
|
||||||
@ -255,6 +327,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
map.Terrain.SetElevationType(ElevationLayerType.TerrainWithElevation);
|
map.Terrain.SetElevationType(ElevationLayerType.TerrainWithElevation);
|
||||||
map.ImageLayer.SetLayerSource(ImagerySourceType.Custom);
|
map.ImageLayer.SetLayerSource(ImagerySourceType.Custom);
|
||||||
map.SetCenterLatitudeLongitude(playerController.Currentlatlong);
|
map.SetCenterLatitudeLongitude(playerController.Currentlatlong);
|
||||||
|
//map3d.gameObject.SetActive(true);
|
||||||
|
//map.gameObject.SetActive(false);
|
||||||
//人物属性变更
|
//人物属性变更
|
||||||
var pos = map.GeoToWorldPosition(playerController.Currentlatlong);
|
var pos = map.GeoToWorldPosition(playerController.Currentlatlong);
|
||||||
playerController.currentPos = pos;
|
playerController.currentPos = pos;
|
||||||
@ -272,6 +346,8 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
map.Terrain.ExaggerationFactor = 0f;
|
map.Terrain.ExaggerationFactor = 0f;
|
||||||
map.Terrain.SetElevationType(ElevationLayerType.FlatTerrain);
|
map.Terrain.SetElevationType(ElevationLayerType.FlatTerrain);
|
||||||
map.SetCenterLatitudeLongitude(playerController.Currentlatlong);
|
map.SetCenterLatitudeLongitude(playerController.Currentlatlong);
|
||||||
|
//map.gameObject.SetActive(true);
|
||||||
|
//map3d.gameObject.SetActive(false);
|
||||||
//人物属性变更
|
//人物属性变更
|
||||||
var pos = map.GeoToWorldPosition(playerController.Currentlatlong);
|
var pos = map.GeoToWorldPosition(playerController.Currentlatlong);
|
||||||
player.transform.position = pos;
|
player.transform.position = pos;
|
||||||
@ -323,7 +399,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
if (!isPause || DateTime.MinValue == startTime)
|
if (!isPause || DateTime.MinValue == startTime)
|
||||||
{
|
{
|
||||||
isStart = true;
|
isStart = true;
|
||||||
startTime = DateTime.Now;
|
startTime = UIManager.Now.GetDateTime();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -377,7 +453,10 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
isStart = false;
|
isStart = false;
|
||||||
|
|
||||||
string recordId = Guid.NewGuid().ToString();
|
string recordId = Guid.NewGuid().ToString();
|
||||||
var path = Helper.GetDataDir("MapWorkoutRecords/"+ recordId);
|
//var path = Helper.GetDataDir("MapWorkoutRecords/"+ recordId);
|
||||||
|
var path = PFConstants.MapWorkoutRecordFolder + "/" + recordId;
|
||||||
|
Helper.CreateDirectoryIfNotExsit(path);
|
||||||
|
|
||||||
string imageFileName = path +"/"+ Guid.NewGuid().ToString() + ".png";
|
string imageFileName = path +"/"+ Guid.NewGuid().ToString() + ".png";
|
||||||
CaptureCamera(Camera.main, new Rect(Screen.width * 0f, Screen.height * 0f, Screen.width * 0.5f, Screen.height * 0.5f), imageFileName);
|
CaptureCamera(Camera.main, new Rect(Screen.width * 0f, Screen.height * 0f, Screen.width * 0.5f, Screen.height * 0.5f), imageFileName);
|
||||||
|
|
||||||
@ -392,7 +471,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
var rs = resultPanel.GetComponent<ResultPanelScript>();
|
var rs = resultPanel.GetComponent<ResultPanelScript>();
|
||||||
rs.InjectController(this);
|
rs.InjectController(this);
|
||||||
rs.SetDataSource(cyclingController.recorderData);
|
rs.SetDataSource(cyclingController.recorderData);
|
||||||
cyclingController.recorderData.SaveLocal(cyclingModel, selectParamModel, imageFileName, recordId);
|
cyclingController.recorderData.SaveWithLocalRecordAysnc(cyclingModel, selectParamModel, imageFileName, recordId, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void CaptureCamera(Camera camera, Rect rect,string fileName)
|
protected void CaptureCamera(Camera camera, Rect rect,string fileName)
|
||||||
|
|||||||
14
Assets/Scenes/Ride/Scripts/EventDelegate.cs
Normal file
14
Assets/Scenes/Ride/Scripts/EventDelegate.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public class EventDelegate : Singleton<EventDelegate>
|
||||||
|
{
|
||||||
|
public EventQueueSystem.EventDelegate<GameEvent> JoyStickUpHandler;
|
||||||
|
//...其他的全局委托
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/EventDelegate.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/EventDelegate.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 033ce2de076bd6148abe8d18305d9d17
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
147
Assets/Scenes/Ride/Scripts/EventQueueManager.cs
Normal file
147
Assets/Scenes/Ride/Scripts/EventQueueManager.cs
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public class GameEvent { }
|
||||||
|
|
||||||
|
public class EventQueueSystem : MonoSingleton<EventQueueSystem>
|
||||||
|
{
|
||||||
|
public delegate void EventDelegate<T>(T e) where T : GameEvent;
|
||||||
|
|
||||||
|
private delegate void InternalEventDelegate(GameEvent e);
|
||||||
|
|
||||||
|
private Dictionary<Type, InternalEventDelegate> delegates = new Dictionary<Type, InternalEventDelegate>();
|
||||||
|
private Dictionary<Delegate, InternalEventDelegate> delegateLookup = new Dictionary<Delegate, InternalEventDelegate>();
|
||||||
|
private Dictionary<InternalEventDelegate, Delegate> delegateLookOnce = new Dictionary<InternalEventDelegate, Delegate>();
|
||||||
|
|
||||||
|
private Queue eventQueue = new Queue();
|
||||||
|
|
||||||
|
public bool bLimitQueueProcessing = false;
|
||||||
|
public float limitQueueTime = 1f;
|
||||||
|
|
||||||
|
//注册侦听事件(持续)
|
||||||
|
public static void AddListener<T>(EventDelegate<T> del) where T : GameEvent
|
||||||
|
{
|
||||||
|
Instance.AddDelegate(del);
|
||||||
|
}
|
||||||
|
|
||||||
|
//注册侦听事件(一次)
|
||||||
|
public static void AddListenerOnce<T>(EventDelegate<T> del) where T : GameEvent
|
||||||
|
{
|
||||||
|
var result = Instance.AddDelegate(del);
|
||||||
|
if (result != null)
|
||||||
|
Instance.delegateLookOnce[result] = del;
|
||||||
|
}
|
||||||
|
|
||||||
|
//判定侦听事件是否存在
|
||||||
|
public static bool HasListener<T>(EventDelegate<T> del) where T : GameEvent
|
||||||
|
{
|
||||||
|
return Instance.delegateLookup.ContainsKey(del);
|
||||||
|
}
|
||||||
|
|
||||||
|
//移除侦听事件
|
||||||
|
public static void RemoveListener<T>(EventDelegate<T> del) where T : GameEvent
|
||||||
|
{
|
||||||
|
if (Instance == null)
|
||||||
|
return;
|
||||||
|
if (Instance.delegateLookup.TryGetValue(del, out InternalEventDelegate eventDelegate))
|
||||||
|
{
|
||||||
|
if (Instance.delegates.TryGetValue(typeof(T), out InternalEventDelegate temp))
|
||||||
|
{
|
||||||
|
temp -= eventDelegate;
|
||||||
|
if (temp == null)
|
||||||
|
Instance.delegates.Remove(typeof(T));
|
||||||
|
else
|
||||||
|
Instance.delegates[typeof(T)] = temp;
|
||||||
|
}
|
||||||
|
Instance.delegateLookup.Remove(del);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void RemoveAll()
|
||||||
|
{
|
||||||
|
if (Instance != null)
|
||||||
|
{
|
||||||
|
Instance.delegates.Clear();
|
||||||
|
Instance.delegateLookup.Clear();
|
||||||
|
Instance.delegateLookOnce.Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private InternalEventDelegate AddDelegate<T>(EventDelegate<T> del) where T : GameEvent
|
||||||
|
{
|
||||||
|
if (delegateLookup.ContainsKey(del))
|
||||||
|
return null;
|
||||||
|
void eventDelegate(GameEvent e) => del((T)e);
|
||||||
|
delegateLookup[del] = eventDelegate;
|
||||||
|
|
||||||
|
if (delegates.TryGetValue(typeof(T), out InternalEventDelegate temp))
|
||||||
|
delegates[typeof(T)] = temp += eventDelegate;
|
||||||
|
else
|
||||||
|
delegates[typeof(T)] = eventDelegate;
|
||||||
|
return eventDelegate;
|
||||||
|
}
|
||||||
|
|
||||||
|
//单个事件触发
|
||||||
|
private static void TriggerEvent(GameEvent e)
|
||||||
|
{
|
||||||
|
var type = e.GetType();
|
||||||
|
if (Instance.delegates.TryGetValue(type, out InternalEventDelegate eventDelegate))
|
||||||
|
{
|
||||||
|
eventDelegate.Invoke(e);
|
||||||
|
//移除单一侦听
|
||||||
|
foreach (InternalEventDelegate item in Instance.delegates[type].GetInvocationList())
|
||||||
|
{
|
||||||
|
if (Instance.delegateLookOnce.TryGetValue(item, out Delegate temp))
|
||||||
|
{
|
||||||
|
Instance.delegates[type] -= item;
|
||||||
|
if (Instance.delegates[type] == null)
|
||||||
|
Instance.delegates.Remove(type);
|
||||||
|
Instance.delegateLookup.Remove(temp);
|
||||||
|
Instance.delegateLookOnce.Remove(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//外部调用的推入事件队列接口
|
||||||
|
public static void QueueEvent(GameEvent e)
|
||||||
|
{
|
||||||
|
if (!Instance.delegates.ContainsKey(e.GetType()))
|
||||||
|
return;
|
||||||
|
Instance.eventQueue.Enqueue(e);
|
||||||
|
}
|
||||||
|
float timer = 0.0f;
|
||||||
|
//事件队列触发处理
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
//float timer = 0.0f;
|
||||||
|
//while (eventQueue.Count > 0)
|
||||||
|
//{
|
||||||
|
// if (bLimitQueueProcessing)
|
||||||
|
// if (timer > limitQueueTime)
|
||||||
|
// return;
|
||||||
|
// var e = eventQueue.Dequeue() as GameEvent;
|
||||||
|
// TriggerEvent(e);
|
||||||
|
// if (bLimitQueueProcessing)
|
||||||
|
// timer += Time.deltaTime;
|
||||||
|
//}
|
||||||
|
timer += Time.deltaTime;
|
||||||
|
while (timer >= 1 && eventQueue.Count > 0)
|
||||||
|
{
|
||||||
|
var e = eventQueue.Dequeue() as GameEvent;
|
||||||
|
TriggerEvent(e);
|
||||||
|
timer = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnApplicationQuit()
|
||||||
|
{
|
||||||
|
RemoveAll();
|
||||||
|
eventQueue.Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/EventQueueManager.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/EventQueueManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c7adca7a71f7c6f4f91c5b09695140af
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -16,14 +16,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
public class Helper
|
public class Helper
|
||||||
{
|
{
|
||||||
public static string GetDataDir(string pathName)
|
public static string CreateDirectoryIfNotExsit(string path)
|
||||||
{
|
{
|
||||||
var dirName = Application.dataPath + "/" + pathName;
|
if (!Directory.Exists(path))
|
||||||
if (!Directory.Exists(dirName))
|
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(dirName);
|
Directory.CreateDirectory(path);
|
||||||
}
|
}
|
||||||
return dirName;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DelectDir(string srcPath)
|
public static void DelectDir(string srcPath)
|
||||||
|
|||||||
76
Assets/Scenes/Ride/Scripts/MessagePanelScript.cs
Normal file
76
Assets/Scenes/Ride/Scripts/MessagePanelScript.cs
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
using Assets.Scripts;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using DG.Tweening;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public class MessagePanelScript : MonoBehaviour
|
||||||
|
{
|
||||||
|
CanvasGroup canvas;
|
||||||
|
Text text;
|
||||||
|
RawImage head;
|
||||||
|
string Name ="";
|
||||||
|
string url ="";
|
||||||
|
bool run = false;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
canvas = transform.GetComponent<CanvasGroup>();
|
||||||
|
EventQueueSystem.AddListener<JoinMessageEvent>(JoinHandler);
|
||||||
|
text = transform.Find("Name").GetComponent<Text>();
|
||||||
|
head = transform.Find("RawImage").GetComponent<RawImage>();
|
||||||
|
}
|
||||||
|
private void JoinHandler(JoinMessageEvent e)
|
||||||
|
{
|
||||||
|
Name = e.name;
|
||||||
|
url = e.url;
|
||||||
|
}
|
||||||
|
float timer = 1f;
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
timer -= Time.deltaTime;
|
||||||
|
if (timer <= 0)//定时器 一秒执行一次
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(Name))
|
||||||
|
{
|
||||||
|
text.text = Name;
|
||||||
|
canvas.alpha = 1;
|
||||||
|
Name = string.Empty;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
canvas.DOFade(0, 1);
|
||||||
|
}
|
||||||
|
if (!string.IsNullOrEmpty(url))
|
||||||
|
{
|
||||||
|
Utils.DisplayImage(head, url, false);
|
||||||
|
url = string.Empty;
|
||||||
|
}
|
||||||
|
//dic.
|
||||||
|
//foreach (var item in dic)
|
||||||
|
//{
|
||||||
|
// text.text = item.Key;
|
||||||
|
// Utils.DisplayImage(head, item.Value, true);
|
||||||
|
// dic.Remove(item.Key);
|
||||||
|
// break;
|
||||||
|
//}
|
||||||
|
timer = 1.0f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class JoinMessageEvent : GameEvent
|
||||||
|
{
|
||||||
|
public string name;//人物名称
|
||||||
|
public string url;//头像地址
|
||||||
|
|
||||||
|
public JoinMessageEvent(string name,string url)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/MessagePanelScript.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/MessagePanelScript.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 811cf43645936ee4da7d950ad83b55a0
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -18,13 +18,13 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
{
|
{
|
||||||
//rankings = service.GetMapRecordRankingsFromServe(param.RankingsId);
|
//rankings = service.GetMapRecordRankingsFromServe(param.RankingsId);
|
||||||
riders = new List<BaseRider>();
|
riders = new List<BaseRider>();
|
||||||
riders.Add(new OnlineRiderModel()
|
//riders.Add(new OnlineRiderModel()
|
||||||
{
|
//{
|
||||||
NickName = App.CurrentUser.Nickname,
|
// NickName = App.CurrentUser.Nickname,
|
||||||
UserId = App.CurrentUser.Id,
|
// UserId = App.CurrentUser.Id,
|
||||||
WxHeadImg = App.CurrentUser.WxHeadImg,
|
// WxHeadImg = App.CurrentUser.WxHeadImg,
|
||||||
Point = new GeoJSON.Net.Geometry.GeographicPosition(this.route.RouteInstance.Point[0], this.route.RouteInstance.Point[1])
|
// Point = new GeoJSON.Net.Geometry.GeographicPosition(this.route.RouteInstance.Point[0], this.route.RouteInstance.Point[1])
|
||||||
});
|
//});
|
||||||
//foreach (var item in rankings)
|
//foreach (var item in rankings)
|
||||||
//{
|
//{
|
||||||
// riders.Add(new ReviewRiderModel()
|
// riders.Add(new ReviewRiderModel()
|
||||||
@ -63,7 +63,8 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
|
|
||||||
public override void Run(TargetData targetData)
|
public override void Run(TargetData targetData)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 获取当前路线在线用户
|
||||||
riders.RemoveAll(r => r.IsSelf == false);
|
riders.RemoveAll(r => r.IsSelf == false);
|
||||||
var onlineUsers = MapUDPService.GetOnlineUsers(recorderData.CurrentRoute.RouteInstance.Id).Where(d => d.IsSelf == false)
|
var onlineUsers = MapUDPService.GetOnlineUsers(recorderData.CurrentRoute.RouteInstance.Id).Where(d => d.IsSelf == false)
|
||||||
.ToList();
|
.ToList();
|
||||||
@ -79,7 +80,9 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
PreDistance = item.PreDistance,
|
PreDistance = item.PreDistance,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
base.Run(targetData);
|
base.Run(targetData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,23 +48,23 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
recorderData.PreDistance = recorderData.EndDistance;
|
recorderData.PreDistance = recorderData.EndDistance;
|
||||||
|
|
||||||
riders = new List<BaseRider>();
|
riders = new List<BaseRider>();
|
||||||
var rider = new OnlineRiderModel()
|
//var rider = new OnlineRiderModel()
|
||||||
{
|
//{
|
||||||
NickName = App.CurrentUser.Nickname,
|
// NickName = App.CurrentUser.Nickname,
|
||||||
UserId = App.CurrentUser.Id,
|
// UserId = App.CurrentUser.Id,
|
||||||
WxHeadImg = App.CurrentUser.WxHeadImg + "?t=1",
|
// WxHeadImg = App.CurrentUser.WxHeadImg + "?t=1",
|
||||||
//Point = new GeoJSON.Net.Geometry.GeographicPosition(this.route.RouteInstance.Point[0], this.route.RouteInstance.Point[1]),
|
// //Point = new GeoJSON.Net.Geometry.GeographicPosition(this.route.RouteInstance.Point[0], this.route.RouteInstance.Point[1]),
|
||||||
EndDistance = recorderData.EndDistance
|
// EndDistance = recorderData.EndDistance
|
||||||
};
|
//};
|
||||||
rider.Point = _turfHelper.Along(rider.EndDistance);
|
//rider.Point = _turfHelper.Along(rider.EndDistance);
|
||||||
|
|
||||||
riders.Add(rider);
|
//riders.Add(rider);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Run(TargetData targetData)
|
public override void Run(TargetData targetData)
|
||||||
{
|
{
|
||||||
#region 获取在线用户
|
#region 获取当前路线在线用户
|
||||||
riders.RemoveAll(r => r.IsSelf == false);
|
riders.RemoveAll(r => r.IsSelf == false);
|
||||||
var onlineUsers = MapUDPService.GetOnlineUsers(recorderData.CurrentRoute.RouteInstance.Id).Where(d => d.IsSelf == false)
|
var onlineUsers = MapUDPService.GetOnlineUsers(recorderData.CurrentRoute.RouteInstance.Id).Where(d => d.IsSelf == false)
|
||||||
.ToList();
|
.ToList();
|
||||||
@ -80,6 +80,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
PreDistance = item.PreDistance,
|
PreDistance = item.PreDistance,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
base.Run(targetData);
|
base.Run(targetData);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using Assets.Scripts.Apis;
|
using Assets.Scripts;
|
||||||
|
using Assets.Scripts.Apis;
|
||||||
using Assets.Scripts.Apis.Models;
|
using Assets.Scripts.Apis.Models;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
@ -106,7 +107,7 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
|||||||
|
|
||||||
public int GlobalCyclingId { get; set; }
|
public int GlobalCyclingId { get; set; }
|
||||||
|
|
||||||
public void SaveLocal(CyclingModel cyclingModel, RouteResultParam selectParam, string imageName,string recordId)
|
public void SaveWithLocalRecordAysnc(CyclingModel cyclingModel, RouteResultParam selectParam, string imageName,string recordId,string path)
|
||||||
{
|
{
|
||||||
Dictionary<MapInterruptRecord, List<string>> recordData = new Dictionary<MapInterruptRecord, List<string>>();
|
Dictionary<MapInterruptRecord, List<string>> recordData = new Dictionary<MapInterruptRecord, List<string>>();
|
||||||
if (RiderDatas.Count <= 0)
|
if (RiderDatas.Count <= 0)
|
||||||
@ -181,7 +182,9 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
|||||||
interruptRecord.MaxHeartRate = RiderDatas.Max(a => a._HeartRate.GetValueOrDefault(0));
|
interruptRecord.MaxHeartRate = RiderDatas.Max(a => a._HeartRate.GetValueOrDefault(0));
|
||||||
//service.CreateRecordCyclingData(interruptRecord);
|
//service.CreateRecordCyclingData(interruptRecord);
|
||||||
//保存骑行记录txt
|
//保存骑行记录txt
|
||||||
var path = Helper.GetDataDir("MapWorkoutRecords" + "/" + interruptRecord.Id);
|
|
||||||
|
//var path = Helper.GetDataDir("MapWorkoutRecords" + "/" + interruptRecord.Id);
|
||||||
|
//var path = PFConstants.MapWorkoutRecordFolder + "/" + interruptRecord.Id;
|
||||||
var fname = path + "/" + newFileName + ".txt";
|
var fname = path + "/" + newFileName + ".txt";
|
||||||
var files = new List<string>();
|
var files = new List<string>();
|
||||||
using (var fs = new FileInfo(fname).OpenWrite())
|
using (var fs = new FileInfo(fname).OpenWrite())
|
||||||
@ -208,18 +211,18 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
|||||||
|
|
||||||
recordData.Add(interruptRecord, files);
|
recordData.Add(interruptRecord, files);
|
||||||
|
|
||||||
SaveDataAysnc(recordData);
|
SaveDataAysnc(recordData, path);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 保存数据
|
/// 保存数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="base64Image"></param>
|
/// <param name="base64Image"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void SaveDataAysnc(Dictionary<MapInterruptRecord, List<string>> data)
|
public void SaveDataAysnc(Dictionary<MapInterruptRecord, List<string>> data,string path)
|
||||||
{
|
{
|
||||||
if (data != null && data.Count > 0)
|
if (data != null && data.Count > 0)
|
||||||
{
|
{
|
||||||
var path = Helper.GetDataDir("MapWorkoutRecords");
|
//var path = Helper.GetDataDir("MapWorkoutRecords");
|
||||||
Task.Run(() => {
|
Task.Run(() => {
|
||||||
var record = data.FirstOrDefault();
|
var record = data.FirstOrDefault();
|
||||||
MapInterruptRecordApi service = new MapInterruptRecordApi();
|
MapInterruptRecordApi service = new MapInterruptRecordApi();
|
||||||
@ -228,7 +231,6 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
|||||||
//删除文件
|
//删除文件
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
path = path + "/" + record.Key.Id;
|
|
||||||
if (result.result && Directory.Exists(path))
|
if (result.result && Directory.Exists(path))
|
||||||
{
|
{
|
||||||
Helper.DelectDir(path);
|
Helper.DelectDir(path);
|
||||||
|
|||||||
66
Assets/Scenes/Ride/Scripts/MonoSingleton.cs
Normal file
66
Assets/Scenes/Ride/Scripts/MonoSingleton.cs
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoBehaviour
|
||||||
|
{
|
||||||
|
private static T instance = null;
|
||||||
|
|
||||||
|
private static readonly object locker = new object();
|
||||||
|
|
||||||
|
private static bool bAppQuitting;
|
||||||
|
|
||||||
|
public static T Instance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (bAppQuitting)
|
||||||
|
{
|
||||||
|
instance = null;
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
lock (locker)
|
||||||
|
{
|
||||||
|
if (instance == null)
|
||||||
|
{
|
||||||
|
instance = FindObjectOfType<T>();
|
||||||
|
if (FindObjectsOfType<T>().Length > 1)
|
||||||
|
{
|
||||||
|
Debug.LogError("不应该存在多个单例!");
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (instance == null)
|
||||||
|
{
|
||||||
|
var singleton = new GameObject();
|
||||||
|
instance = singleton.AddComponent<T>();
|
||||||
|
singleton.name = "(singleton)" + typeof(T);
|
||||||
|
singleton.hideFlags = HideFlags.None;
|
||||||
|
DontDestroyOnLoad(singleton);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
DontDestroyOnLoad(instance.gameObject);
|
||||||
|
}
|
||||||
|
instance.hideFlags = HideFlags.None;
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
bAppQuitting = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDestroy()
|
||||||
|
{
|
||||||
|
bAppQuitting = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/MonoSingleton.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/MonoSingleton.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 018a42bd337f3c74789a75cc6973b979
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -1,5 +1,6 @@
|
|||||||
using Assets.Scenes.Ride.Scripts.Model;
|
using Assets.Scenes.Ride.Scripts.Model;
|
||||||
using Assets.Scripts;
|
using Assets.Scripts;
|
||||||
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
@ -23,7 +24,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
private int offset = 8;//显示区域的数量
|
private int offset = 8;//显示区域的数量
|
||||||
|
|
||||||
CyclingController cyclingController;
|
CyclingController cyclingController;
|
||||||
private void Start()
|
private void Awake()
|
||||||
{
|
{
|
||||||
cyclingController = FindObjectOfType<CyclingController>();
|
cyclingController = FindObjectOfType<CyclingController>();
|
||||||
playerController = FindObjectOfType<PlayerController>();
|
playerController = FindObjectOfType<PlayerController>();
|
||||||
@ -35,15 +36,33 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
UIManager.AddEvent(scroll, UnityEngine.EventSystems.EventTriggerType.EndDrag, OnEndDrag);
|
UIManager.AddEvent(scroll, UnityEngine.EventSystems.EventTriggerType.EndDrag, OnEndDrag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
bool startMouse = false;
|
||||||
float t =1f;
|
float t =1f;
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
||||||
|
{
|
||||||
|
if (scroll.GetComponent<ScrollRect>().verticalNormalizedPosition <= 0 ||
|
||||||
|
scroll.GetComponent<ScrollRect>().verticalNormalizedPosition >= (pageIndex == 0 ? 1.2 : 1))
|
||||||
|
{
|
||||||
|
startMouse = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (startMouse)
|
||||||
|
{
|
||||||
|
startMouse = false;
|
||||||
|
OnEndDrag(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
t -= Time.deltaTime;
|
t -= Time.deltaTime;
|
||||||
while (t < 0)
|
while (t < 0)
|
||||||
{
|
{
|
||||||
Utils.DestroyChildren(transform);
|
Utils.DestroyChildren(transform);
|
||||||
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 });
|
||||||
|
totalPages = MapUDPService.GetNearRiderCount();
|
||||||
for (int i = 0; i < nearList.Count(); i++)
|
for (int i = 0; i < nearList.Count(); i++)
|
||||||
{
|
{
|
||||||
Create(nearList[i]);
|
Create(nearList[i]);
|
||||||
@ -51,20 +70,29 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
t = 1;
|
t = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private int totalPages = 0;
|
||||||
private void OnEndDrag(BaseEventData arg0)
|
private void OnEndDrag(BaseEventData arg0)
|
||||||
{
|
{
|
||||||
var scrollrect = scroll.GetComponent<ScrollRect>();
|
var scrollrect = scroll.GetComponent<ScrollRect>();
|
||||||
if (scrollrect.verticalNormalizedPosition <= 0)
|
if (scrollrect.verticalNormalizedPosition <= 0)
|
||||||
{
|
{
|
||||||
Debug.Log(scrollrect.verticalNormalizedPosition);
|
var p = pageIndex + 1;
|
||||||
pageIndex++;
|
if (p * pageSize <= totalPages)
|
||||||
|
{
|
||||||
|
pageIndex++;
|
||||||
|
}
|
||||||
//RefreshList();
|
//RefreshList();
|
||||||
|
|
||||||
}
|
}
|
||||||
if (scrollrect.verticalNormalizedPosition >= 1)
|
if (scrollrect.verticalNormalizedPosition >= (pageIndex == 0 ? 1.2 : 1))
|
||||||
{
|
{
|
||||||
if(pageIndex > 0)
|
var p = pageIndex - 1;
|
||||||
|
if (p > 0)
|
||||||
|
{
|
||||||
pageIndex--;
|
pageIndex--;
|
||||||
|
}
|
||||||
|
//if (pageIndex > 0)
|
||||||
|
// pageIndex--;
|
||||||
//RefreshList();
|
//RefreshList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,13 +22,14 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
private double temp = 0;
|
private double temp = 0;
|
||||||
private int index = -1;
|
private int index = -1;
|
||||||
public void AnimateNum(float newScore,double totalDistance,int currentIndex, int digit, string format)
|
public void AnimateNum(float newScore,double totalDistance,int currentIndex, int digit, string format,Image process)
|
||||||
{
|
{
|
||||||
if (currentIndex != index)
|
if (currentIndex != index)
|
||||||
{
|
{
|
||||||
text.text = string.Format(format, totalDistance);
|
text.text = string.Format(format, totalDistance);
|
||||||
index = currentIndex;
|
index = currentIndex;
|
||||||
mOldScore = (float)totalDistance;
|
mOldScore = 0;
|
||||||
|
process.fillAmount = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -37,6 +38,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//if (value != newScore)
|
//if (value != newScore)
|
||||||
{
|
{
|
||||||
temp = Math.Round(value, digit);
|
temp = Math.Round(value, digit);
|
||||||
|
process.fillAmount = ((float)temp / (float)totalDistance);
|
||||||
//向Text组件赋值
|
//向Text组件赋值
|
||||||
text.text = string.Format(format, temp);
|
text.text = string.Format(format, temp);
|
||||||
}
|
}
|
||||||
|
|||||||
125
Assets/Scenes/Ride/Scripts/OnlinePlayerController.cs
Normal file
125
Assets/Scenes/Ride/Scripts/OnlinePlayerController.cs
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
using Assets.Scenes.Ride.Scripts.Model;
|
||||||
|
using Assets.Scripts;
|
||||||
|
using Assets.Scripts.Apis.Models;
|
||||||
|
using ChartAndGraph;
|
||||||
|
using DG.Tweening;
|
||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public class OnlinePlayerController : AbstractPlayer
|
||||||
|
{
|
||||||
|
public PlayerController _playerController;
|
||||||
|
RawImage head;
|
||||||
|
GameObject headPanel;
|
||||||
|
|
||||||
|
Image arrowImage;
|
||||||
|
GameObject reviewInfoPanel;
|
||||||
|
Transform uiObject;
|
||||||
|
|
||||||
|
GraphChartBase graph;
|
||||||
|
ChartDataSourceScript chartDataSourceScript;
|
||||||
|
|
||||||
|
protected override void Init()
|
||||||
|
{
|
||||||
|
base.Init();
|
||||||
|
currentlatlong = mainController.GetCenterCoordinate();
|
||||||
|
_playerController = FindObjectOfType<PlayerController>();
|
||||||
|
graph = transform.parent.Find("SingleUI/Panel/GraphChart").GetComponent<GraphChartBase>();
|
||||||
|
chartDataSourceScript = transform.parent.Find("SingleUI/Panel/GraphChart").GetComponent<ChartDataSourceScript>();
|
||||||
|
|
||||||
|
//创建UI
|
||||||
|
uiObject = transform.parent.Find("SingleUI/Panel/ArrowList");
|
||||||
|
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
||||||
|
arrowImage.color = new Color(0.1529412f, 0.8745098f, 0.8901961f);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
protected override bool GetStart()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
protected override void Compute()
|
||||||
|
{
|
||||||
|
currentlatlong = mainController.Along(totalDistance);//下一个坐标
|
||||||
|
//var currentUser = cyclingExcutor.riders.Where(c => c.UserId == UserId).FirstOrDefault();
|
||||||
|
//if (currentUser == null)
|
||||||
|
//{
|
||||||
|
// RemoveSelf();
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetDistance(double _distance)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetTotalDistance(double _totalDistance, double _distance)
|
||||||
|
{
|
||||||
|
totalDistance = _totalDistance;
|
||||||
|
distance = _distance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int GetCurrentIndex(double endistance,MapDataModel mapDataModel)
|
||||||
|
{
|
||||||
|
var pointList = mapDataModel.List;
|
||||||
|
int onIndex = 0;
|
||||||
|
var sumDistance = 0D;
|
||||||
|
for (int i = 0; i < pointList.Count; i++)
|
||||||
|
{
|
||||||
|
sumDistance += pointList[i].Distance;
|
||||||
|
if (endistance * 1000 <= sumDistance)
|
||||||
|
{
|
||||||
|
onIndex = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return onIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
private string headUrl;
|
||||||
|
public void SetHead(string url )
|
||||||
|
{
|
||||||
|
headUrl = url;
|
||||||
|
}
|
||||||
|
public void MoveHead(Transform parent)
|
||||||
|
{
|
||||||
|
var itemIndex = chartDataSourceScript.GetViewIndex(GetCurrentIndex(TotalDistance, mainController.GetMapData())) + 1;
|
||||||
|
var m = graph.DataSource.GetPoint("Player 2", itemIndex);
|
||||||
|
graph.PointToWorldSpace(out Vector3 itemPosition, m.x, m.y, "Player 2");
|
||||||
|
itemPosition.x -= 12f;
|
||||||
|
itemPosition.y += 5f;
|
||||||
|
|
||||||
|
if (headPanel == null)
|
||||||
|
{
|
||||||
|
headPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineHeadPanel"));
|
||||||
|
headPanel.transform.SetParent(parent);
|
||||||
|
headPanel.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
|
||||||
|
headPanel.transform.position = itemPosition;
|
||||||
|
}
|
||||||
|
if (head == null)
|
||||||
|
{
|
||||||
|
head = headPanel.GetComponentInChildren<RawImage>();
|
||||||
|
if (!string.IsNullOrEmpty(headUrl))
|
||||||
|
{
|
||||||
|
Utils.DisplayImage(head, headUrl, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
headPanel.transform.DOMove(new Vector3(itemPosition.x, itemPosition.y, 0), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemoveSelf()
|
||||||
|
{
|
||||||
|
transform.gameObject.Destroy();
|
||||||
|
headPanel.Destroy();
|
||||||
|
}
|
||||||
|
protected override void AfterExcute()
|
||||||
|
{
|
||||||
|
((RectTransform)arrowImage.transform).position = Camera.main.WorldToScreenPoint(transform.position);
|
||||||
|
MoveHead(graph.transform);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/OnlinePlayerController.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/OnlinePlayerController.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 281c3f68a13a427499876dec554c3223
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -16,11 +16,17 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
GameObject headPanel;
|
GameObject headPanel;
|
||||||
|
|
||||||
public int tickOffset = 0;
|
public int tickOffset = 0;
|
||||||
|
Image arrowImage;
|
||||||
|
GameObject reviewInfoPanel;
|
||||||
|
Transform uiObject;
|
||||||
protected override void Init()
|
protected override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
_playerController = FindObjectOfType<PlayerController>();
|
_playerController = FindObjectOfType<PlayerController>();
|
||||||
tickOffset = mainController.preticks;
|
tickOffset = mainController.preticks;
|
||||||
|
//创建UI
|
||||||
|
uiObject = transform.parent.Find("SingleUI/Panel/ArrowList");
|
||||||
|
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Ride/ReviewArrow"), uiObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Compute()
|
protected override void Compute()
|
||||||
@ -60,5 +66,9 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
headPanel.transform.DOMove(new Vector3(nextPosition.x, nextPosition.y, 0), 1);
|
headPanel.transform.DOMove(new Vector3(nextPosition.x, nextPosition.y, 0), 1);
|
||||||
}
|
}
|
||||||
|
protected override void AfterExcute()
|
||||||
|
{
|
||||||
|
((RectTransform)arrowImage.transform).position = Camera.main.WorldToScreenPoint(transform.position);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,6 +1,9 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Assets.Scenes.Ride.Scripts.Model;
|
using Assets.Scenes.Ride.Scripts.Model;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Assets.Scenes.Ride.Scripts.Model.RiderModels;
|
||||||
|
|
||||||
namespace Assets.Scenes.Ride.Scripts
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
{
|
{
|
||||||
@ -9,9 +12,11 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
#region 骑行逻辑
|
#region 骑行逻辑
|
||||||
TrailRenderer trail;
|
TrailRenderer trail;
|
||||||
|
|
||||||
|
|
||||||
protected override void Init()
|
protected override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
|
|
||||||
totalDistance = mainController.selectParamModel.EndDistance;
|
totalDistance = mainController.selectParamModel.EndDistance;
|
||||||
currentlatlong = mainController.GetCenterCoordinate();
|
currentlatlong = mainController.GetCenterCoordinate();
|
||||||
trail = FindObjectOfType<TrailRenderer>();
|
trail = FindObjectOfType<TrailRenderer>();
|
||||||
@ -22,28 +27,35 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//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");
|
||||||
//trail.materials = new Material[] { color7};
|
//trail.materials = new Material[] { color7};
|
||||||
|
|
||||||
|
trail.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
||||||
|
trail.allowOcclusionWhenDynamic = false;
|
||||||
|
trail.textureMode = LineTextureMode.Tile;
|
||||||
|
trail.motionVectorGenerationMode = MotionVectorGenerationMode.ForceNoMotion;
|
||||||
|
trail.receiveShadows = false;
|
||||||
|
trail.rayTracingMode = UnityEngine.Experimental.Rendering.RayTracingMode.Off;
|
||||||
}
|
}
|
||||||
TargetData targetData;
|
TargetData targetData;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 计算数据,父类会在此方法后处理动画
|
/// 计算数据,父类会在此方法后处理动画
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Compute()
|
protected override void Compute()
|
||||||
{
|
{
|
||||||
//计算数据
|
//计算数据
|
||||||
//speed = mainController.UpDateSpeed();
|
//speed = mainController.UpDateSpeed();
|
||||||
heartRate = mainController.UpDateHeart()??0;
|
heartRate = mainController.UpDateHeart() ?? 0;
|
||||||
power = mainController.UpdatePower();
|
power = mainController.UpdatePower();
|
||||||
cadance = mainController.UpdateCadence();
|
cadance = mainController.UpdateCadence();
|
||||||
weight = App.CurrentUser.Weight;
|
weight = App.CurrentUser.Weight;
|
||||||
bicycleWeight = App.CurrentUser.BicycleWeight;
|
bicycleWeight = App.CurrentUser.BicycleWeight;
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
power = 2000;//测试功率
|
power = 300;//测试功率
|
||||||
#endif
|
#endif
|
||||||
mainController.TrackResistance(currentSlope * App.rideSetting.sensitivity/100);
|
mainController.TrackResistance(currentSlope * App.rideSetting.sensitivity / 100);
|
||||||
speed = Helper.CalculateSpeed(elevation, currentSlope, power, weight, bicycleWeight);
|
speed = Helper.CalculateSpeed(elevation, currentSlope, power, weight, bicycleWeight);
|
||||||
distance = mainController.UpdateDistance(speed);
|
distance = mainController.UpdateDistance(speed);
|
||||||
totalDistance += distance;
|
totalDistance += distance;
|
||||||
|
|
||||||
if (!stopRecord)
|
if (!stopRecord)
|
||||||
{
|
{
|
||||||
//记录骑行数据
|
//记录骑行数据
|
||||||
@ -61,25 +73,24 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
_Lon = currentlatlong.y,
|
_Lon = currentlatlong.y,
|
||||||
_TotalClimb = totalClimb,
|
_TotalClimb = totalClimb,
|
||||||
};
|
};
|
||||||
recorderData.PreDistance = TotalDistance-Distance;
|
recorderData.PreDistance = TotalDistance - Distance;
|
||||||
recorderData.EndDistance = TotalDistance;
|
recorderData.EndDistance = TotalDistance;
|
||||||
recorderData.RiderDatas.Add(targetData);
|
recorderData.RiderDatas.Add(targetData);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
protected override void SendTcp()
|
protected override void BeforeRun()
|
||||||
{
|
{
|
||||||
if (mainController.cyclingController != null)
|
if (mainController != null)
|
||||||
{
|
{
|
||||||
mainController.cyclingController.Run(null);
|
mainController.TcpHandler();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//上传数据
|
//上传数据
|
||||||
public override void Upload()
|
public override void Upload()
|
||||||
{
|
{
|
||||||
mainController.Save(TotalDistance);
|
mainController.Save(TotalDistance);
|
||||||
//SceneManager.LoadScene("MainScene");
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
reviewItemScript.SetDistance(0D);
|
reviewItemScript.SetDistance(0D);
|
||||||
reviewList.Add(reviewItemScript);
|
reviewList.Add(reviewItemScript);
|
||||||
GameObject otherPlayerObj = (GameObject)Instantiate(otherPlayer, transform.parent.parent.parent);
|
GameObject otherPlayerObj = (GameObject)Instantiate(otherPlayer, transform.parent.parent.parent);
|
||||||
|
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.record = item.record;
|
||||||
|
|||||||
@ -241,7 +241,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
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;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
InputField startValue;
|
InputField startValue;
|
||||||
InputField endValue;
|
InputField endValue;
|
||||||
private int pageIndex = 0;
|
private int pageIndex = 0;
|
||||||
private int pageSize = 25;
|
private int pageSize = 8;
|
||||||
private int totalPages = 0;
|
private int totalPages = 0;
|
||||||
private string seachName = string.Empty;
|
private string seachName = string.Empty;
|
||||||
|
|
||||||
@ -92,6 +92,26 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//startValue.text = _startValue.ToString();
|
//startValue.text = _startValue.ToString();
|
||||||
//endValue.text = _endValue.ToString();
|
//endValue.text = _endValue.ToString();
|
||||||
}
|
}
|
||||||
|
bool startMouse = false;
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
if (Input.GetAxis("Mouse ScrollWheel") != 0)
|
||||||
|
{
|
||||||
|
if (scroll.GetComponent<ScrollRect>().verticalNormalizedPosition <= 0 ||
|
||||||
|
scroll.GetComponent<ScrollRect>().verticalNormalizedPosition >= (pageIndex == 0 ? 1.2 : 1))
|
||||||
|
{
|
||||||
|
startMouse = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (startMouse)
|
||||||
|
{
|
||||||
|
startMouse = false;
|
||||||
|
OnEndDrag(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
private void StartvalueChanged(string input)
|
private void StartvalueChanged(string input)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(input))
|
if (!string.IsNullOrWhiteSpace(input))
|
||||||
@ -178,7 +198,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
|
|
||||||
private void Refresh()
|
private void Refresh()
|
||||||
{
|
{
|
||||||
var list = mapApi.GetRouteRanking(App.RouteIdParam, "1", pageIndex, pageSize, seachName);
|
var list = mapApi.GetShadowList(App.RouteIdParam, seachName, pageIndex, pageSize);
|
||||||
totalPages = list.data.TotalPages;
|
totalPages = list.data.TotalPages;
|
||||||
var data = list.data.list;//.Where(c => c.WeightKg >= _startValue && c.WeightKg <= _endValue).ToList();
|
var data = list.data.list;//.Where(c => c.WeightKg >= _startValue && c.WeightKg <= _endValue).ToList();
|
||||||
if (_startValue > 0)
|
if (_startValue > 0)
|
||||||
@ -201,14 +221,14 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
private void CreateGameObject(List<MapRouteRanking> list)
|
private void CreateGameObject(List<MapRouteRanking> list)
|
||||||
{
|
{
|
||||||
if (list.Count == 0)
|
//if (list.Count == 0)
|
||||||
{
|
//{
|
||||||
noRecord.SetActive(true);
|
// noRecord.SetActive(true);
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
noRecord.SetActive(false);
|
// noRecord.SetActive(false);
|
||||||
}
|
//}
|
||||||
var parent = transform.Find("Panel/PlayerList/Scroll View/Viewport/Content");
|
var parent = transform.Find("Panel/PlayerList/Scroll View/Viewport/Content");
|
||||||
int index = 0;
|
int index = 0;
|
||||||
foreach (var item in list)
|
foreach (var item in list)
|
||||||
@ -253,12 +273,13 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
seletedPlayerScript.Reset();
|
seletedPlayerScript.Reset();
|
||||||
}
|
}
|
||||||
|
//TODO BUG
|
||||||
private void OnEndDrag(BaseEventData arg0)
|
private void OnEndDrag(BaseEventData arg0)
|
||||||
{
|
{
|
||||||
var scrollrect = scroll.GetComponent<ScrollRect>();
|
var scrollrect = scroll.GetComponent<ScrollRect>();
|
||||||
if (scrollrect.verticalNormalizedPosition <= 0)
|
if (scrollrect.verticalNormalizedPosition <= 0)
|
||||||
{
|
{
|
||||||
if (pageIndex < totalPages )
|
if (pageIndex < totalPages-1 )
|
||||||
{
|
{
|
||||||
pageIndex++;
|
pageIndex++;
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|||||||
@ -99,6 +99,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
Image nextSlopeImage;
|
Image nextSlopeImage;
|
||||||
Image currentSlopeImage;
|
Image currentSlopeImage;
|
||||||
Image miniMapProcess;
|
Image miniMapProcess;
|
||||||
|
Image currentSlopeProcess;
|
||||||
Text miniMapProcessText;
|
Text miniMapProcessText;
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
@ -124,6 +125,8 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
currentSlopeText = transform.Find("Panel/CurrentSlopePanel/CurrentSlopeText").GetComponent<Text>();
|
currentSlopeText = transform.Find("Panel/CurrentSlopePanel/CurrentSlopeText").GetComponent<Text>();
|
||||||
currentSlopeDistanceText = transform.Find("Panel/CurrentSlopePanel/CurrentSlopeDistance").GetComponent<Text>();
|
currentSlopeDistanceText = transform.Find("Panel/CurrentSlopePanel/CurrentSlopeDistance").GetComponent<Text>();
|
||||||
currentSlopeToatalDistanceText = transform.Find("Panel/CurrentSlopePanel/TotalSlopeDistance").GetComponent<Text>();
|
currentSlopeToatalDistanceText = transform.Find("Panel/CurrentSlopePanel/TotalSlopeDistance").GetComponent<Text>();
|
||||||
|
currentSlopeProcess = transform.Find("Panel/CurrentSlopePanel/Process").GetComponent<Image>();
|
||||||
|
|
||||||
speedTxt = transform.Find("Panel/ComputerPanel/Speed").GetComponent<Text>();
|
speedTxt = transform.Find("Panel/ComputerPanel/Speed").GetComponent<Text>();
|
||||||
powerTxt = transform.Find("Panel/PowerPanel/Power").GetComponent<Text>();
|
powerTxt = transform.Find("Panel/PowerPanel/Power").GetComponent<Text>();
|
||||||
timerTxt = transform.Find("Panel/ComputerPanel/Timer").GetComponent<Text>();
|
timerTxt = transform.Find("Panel/ComputerPanel/Timer").GetComponent<Text>();
|
||||||
@ -338,7 +341,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
target.transform.eulerAngles.Set(cameraX, cameraY, cameraZ);// = new Vector3(cameraX, cameraY, cameraZ);
|
target.transform.eulerAngles = new Vector3(cameraX, cameraY, cameraZ);
|
||||||
}
|
}
|
||||||
//控制照片移动
|
//控制照片移动
|
||||||
((RectTransform)arrow.transform).position = Camera.main.WorldToScreenPoint(target.transform.position);
|
((RectTransform)arrow.transform).position = Camera.main.WorldToScreenPoint(target.transform.position);
|
||||||
@ -395,39 +398,43 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//nextSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.NextSlopeDistance, 0, "-{0}M");
|
//nextSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.NextSlopeDistance, 0, "-{0}M");
|
||||||
nextSlopeDistanceText.text = $"{Math.Round(playerController.NextSlopeTotalDistance, 0)}M";
|
nextSlopeDistanceText.text = $"{Math.Round(playerController.NextSlopeTotalDistance, 0)}M";
|
||||||
currentSlopeText.text = Math.Round(playerController.CurrentSlope, 1).ToString() + "%";
|
currentSlopeText.text = Math.Round(playerController.CurrentSlope, 1).ToString() + "%";
|
||||||
currentSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.CurrentSlopeDistance, Math.Round(playerController.CurrentDistance, 0), playerController.CurrentIndex, 0, "{0}M");
|
currentSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.CurrentDistance - (float)playerController.CurrentSlopeDistance, Math.Round(playerController.CurrentDistance, 0), playerController.CurrentIndex, 0, "{0}M", currentSlopeProcess);
|
||||||
totalClimb.text = Math.Round(playerController.TotalClimb, 0).ToString();
|
totalClimb.text = Math.Round(playerController.TotalClimb, 0).ToString();
|
||||||
//小地图进度
|
//小地图进度
|
||||||
var process = (float)(playerController.TotalDistance / routeInstance.Distance);
|
var process = (float)(playerController.TotalDistance / routeInstance.Distance);
|
||||||
miniMapProcess.fillAmount = process;
|
miniMapProcess.fillAmount = process;
|
||||||
miniMapProcessText.text = $"{process*100:f0}%";
|
miniMapProcessText.text = $"{process*100:f0}%";
|
||||||
//动态改变坡度图片
|
//动态改变坡度图片
|
||||||
if (playerController.CurrentSlope >= 1)
|
ChangeSlopeImage();
|
||||||
{
|
}
|
||||||
currentSlopeImage.sprite = uphill1;
|
}
|
||||||
}
|
|
||||||
else if (playerController.CurrentSlope > -1 || playerController.CurrentSlope < 1)
|
|
||||||
{
|
|
||||||
currentSlopeImage.sprite = straight;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
currentSlopeImage.sprite = downhill1;
|
|
||||||
}
|
|
||||||
//下一个坡度
|
|
||||||
if (playerController.NextSlope >= 1)
|
|
||||||
{
|
|
||||||
nextSlopeImage.sprite = uphill1Small;
|
|
||||||
}
|
|
||||||
else if (playerController.NextSlope > -1 || playerController.NextSlope < 1)
|
|
||||||
{
|
|
||||||
nextSlopeImage.sprite = straightSmall;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
nextSlopeImage.sprite = downhill1Small;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
private void ChangeSlopeImage()
|
||||||
|
{
|
||||||
|
if (playerController.CurrentSlope >= 1)
|
||||||
|
{
|
||||||
|
currentSlopeImage.sprite = uphill1;
|
||||||
|
}
|
||||||
|
else if (playerController.CurrentSlope > -1 || playerController.CurrentSlope < 1)
|
||||||
|
{
|
||||||
|
currentSlopeImage.sprite = straight;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
currentSlopeImage.sprite = downhill1;
|
||||||
|
}
|
||||||
|
//下一个坡度
|
||||||
|
if (playerController.NextSlope >= 1)
|
||||||
|
{
|
||||||
|
nextSlopeImage.sprite = uphill1Small;
|
||||||
|
}
|
||||||
|
else if (playerController.NextSlope > -1 || playerController.NextSlope < 1)
|
||||||
|
{
|
||||||
|
nextSlopeImage.sprite = straightSmall;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
nextSlopeImage.sprite = downhill1Small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//重置游戏
|
//重置游戏
|
||||||
@ -552,7 +559,11 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
titlePanel.transform.DOLocalMove(new Vector3(titlePanel.transform.localPosition.x, titlePanel.transform.localPosition.y + isSimple * 200f, titlePanel.transform.localPosition.z), 1);
|
titlePanel.transform.DOLocalMove(new Vector3(titlePanel.transform.localPosition.x, titlePanel.transform.localPosition.y + isSimple * 200f, titlePanel.transform.localPosition.z), 1);
|
||||||
miniMap.transform.DOLocalMove(new Vector3(miniMap.transform.localPosition.x, miniMap.transform.localPosition.y + isSimple * 260f, miniMap.transform.localPosition.z), 1);
|
miniMap.transform.DOLocalMove(new Vector3(miniMap.transform.localPosition.x, miniMap.transform.localPosition.y + isSimple * 260f, miniMap.transform.localPosition.z), 1);
|
||||||
nextSlopePanel.transform.DOLocalMove(new Vector3(nextSlopePanel.transform.localPosition.x, nextSlopePanel.transform.localPosition.y + isSimple * 260f, nextSlopePanel.transform.localPosition.z), 1);
|
nextSlopePanel.transform.DOLocalMove(new Vector3(nextSlopePanel.transform.localPosition.x, nextSlopePanel.transform.localPosition.y + isSimple * 260f, nextSlopePanel.transform.localPosition.z), 1);
|
||||||
currentSlopePanel.transform.DOLocalMove(new Vector3(currentSlopePanel.transform.localPosition.x, currentSlopePanel.transform.localPosition.y + isSimple * 80f, currentSlopePanel.transform.localPosition.z), 1);
|
currentSlopePanel.transform.DOLocalMove(new Vector3(currentSlopePanel.transform.localPosition.x, currentSlopePanel.transform.localPosition.y + isSimple * 120f, currentSlopePanel.transform.localPosition.z), 1);
|
||||||
|
var Scale = isSimple == 1 ? new Vector3(0.7f, 0.7f, 0.7f) : new Vector3(1f, 1f, 1f);
|
||||||
|
currentSlopePanel.transform.DOScale(Scale, 1);
|
||||||
|
|
||||||
|
viewButton.transform.DOLocalMove(new Vector3(viewButton.transform.localPosition.x + isSimple * 200f, viewButton.transform.localPosition.y, viewButton.transform.localPosition.z), 1);
|
||||||
|
|
||||||
nearByPanel.transform.DOLocalMove(new Vector3(nearByPanel.transform.localPosition.x + isSimple * -330f, nearByPanel.transform.localPosition.y, nearByPanel.transform.localPosition.z), 1).onComplete += () =>
|
nearByPanel.transform.DOLocalMove(new Vector3(nearByPanel.transform.localPosition.x + isSimple * -330f, nearByPanel.transform.localPosition.y, nearByPanel.transform.localPosition.z), 1).onComplete += () =>
|
||||||
{
|
{
|
||||||
@ -593,7 +604,6 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//挪到人物脚本中处理
|
|
||||||
void MoveChartMarkPoint()
|
void MoveChartMarkPoint()
|
||||||
{
|
{
|
||||||
//if (mainController.isStart)
|
//if (mainController.isStart)
|
||||||
@ -650,6 +660,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
itemPosition.y += 5f;
|
itemPosition.y += 5f;
|
||||||
item.MoveHead(graph.transform, itemPosition);
|
item.MoveHead(graph.transform, itemPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//移动总海拔图范围
|
//移动总海拔图范围
|
||||||
private void MoveElevationImage()
|
private void MoveElevationImage()
|
||||||
|
|||||||
28
Assets/Scenes/Ride/Scripts/Singleton.cs
Normal file
28
Assets/Scenes/Ride/Scripts/Singleton.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
|
{
|
||||||
|
public abstract class Singleton<T> where T : class, new()
|
||||||
|
{
|
||||||
|
private static T instance = null;
|
||||||
|
|
||||||
|
private static readonly object locker = new object();
|
||||||
|
|
||||||
|
public static T Instance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
lock (locker)
|
||||||
|
{
|
||||||
|
if (instance == null)
|
||||||
|
instance = new T();
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scenes/Ride/Scripts/Singleton.cs.meta
Normal file
11
Assets/Scenes/Ride/Scripts/Singleton.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08725ccb95699af4c8a913ea306d889e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -127,7 +127,14 @@ namespace Assets.Scripts.Apis
|
|||||||
|
|
||||||
public JsonResult<MapRouteRankingList> GetRouteRanking(int id,string type, int pageIndex,int pageSize,string name)
|
public JsonResult<MapRouteRankingList> GetRouteRanking(int id,string type, int pageIndex,int pageSize,string name)
|
||||||
{
|
{
|
||||||
var url = $"Map/v1/GetRouteRanking?pageIndex={ 0 }&pageSize={ pageSize }&name={ name }&id={ id }&type={ type }&filterSelf={ false }";
|
var url = $"Map/v1/GetRouteRanking?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&id={ id }&type={ type }&filterSelf={ false }";
|
||||||
|
|
||||||
|
return Get<JsonResult<MapRouteRankingList>>(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonResult<MapRouteRankingList> GetShadowList(int id, string name, int pageIndex, int pageSize)
|
||||||
|
{
|
||||||
|
var url = $"Map/GetShadowList?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&id={ id }";
|
||||||
|
|
||||||
return Get<JsonResult<MapRouteRankingList>>(url);
|
return Get<JsonResult<MapRouteRankingList>>(url);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ using System.Net;
|
|||||||
|
|
||||||
public static class App
|
public static class App
|
||||||
{
|
{
|
||||||
public static string Host = "http://192.168.0.101:5082/";
|
public static string Host = "http://192.168.0.97:5082/";
|
||||||
|
|
||||||
public static string AppVersion = Application.version;
|
public static string AppVersion = Application.version;
|
||||||
|
|
||||||
@ -51,9 +51,9 @@ public static class App
|
|||||||
static App()
|
static App()
|
||||||
{
|
{
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
Host = "http://pf.juze.pro/";
|
//Host = "http://pf.juze.pro/";
|
||||||
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);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user