Compare commits

..

2 Commits

Author SHA1 Message Date
YangHua 615b4cacf6 融合 2023-11-17 11:03:25 +08:00
YangHua c45272143c 修复读取设备数据出现得问题 2023-11-17 11:00:35 +08:00
16 changed files with 1297 additions and 1019 deletions

View File

@ -54,7 +54,7 @@ ModelImporter:
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 100
globalScale: 4
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
@ -101,7 +101,7 @@ ModelImporter:
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
globalScale: 0.04
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 8c7efb9633052b7428456639ff45265c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -26,7 +26,6 @@ Transform:
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 698992079550527627}
- {fileID: 698992079647616715}
@ -66,7 +65,6 @@ Transform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 698992079258812568}
m_RootOrder: 2
@ -209,7 +207,6 @@ Transform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 50, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 698992079258812568}
m_RootOrder: 0
@ -258,7 +255,6 @@ Transform:
m_LocalRotation: {x: -0.112337604, y: -0.8737029, z: 0.40741414, w: -0.24090946}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 698992079258812568}
m_RootOrder: 1
@ -322,7 +318,6 @@ Light:
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!1 &698992079682490597
@ -352,7 +347,6 @@ Transform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -470.8, y: 151.6, z: 304.3381}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 698992079258812568}
m_RootOrder: 3
@ -418,7 +412,6 @@ Transform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -3604, y: -8, z: -1214.3}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 698992079258812568}
m_RootOrder: 5
@ -432,7 +425,7 @@ Terrain:
m_GameObject: {fileID: 698992079842674932}
m_Enabled: 1
serializedVersion: 6
m_TerrainData: {fileID: 15600000, guid: c0b299817880e7f43b42aadfed2f817a, type: 2}
m_TerrainData: {fileID: 0}
m_TreeDistance: 5000
m_TreeBillboardDistance: 50
m_TreeCrossFadeLength: 5
@ -446,7 +439,6 @@ Terrain:
m_DrawHeightmap: 1
m_DrawInstanced: 0
m_DrawTreesAndFoliage: 1
m_StaticShadowCaster: 0
m_ReflectionProbeUsage: 1
m_MaterialTemplate: {fileID: 10652, guid: 0000000000000000f000000000000000, type: 0}
m_BakeLightProbesForTrees: 1

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3520345ae076bd5488b2dce425334925
guid: cf79019dac6999b49bee519aca595776
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,6 +1,6 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5562508959717975316
--- !u!1 &4990122376453678954
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -8,10 +8,9 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5078319586233466798}
- component: {fileID: 8202756229782941707}
- component: {fileID: 6211304039146407105}
- component: {fileID: -5200469951853559481}
- component: {fileID: 5623774859421007312}
- component: {fileID: 8765257102886220405}
- component: {fileID: 6791575215690237631}
m_Layer: 0
m_Name: SM_AE86
m_TagString: Untagged
@ -19,35 +18,35 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5078319586233466798
--- !u!4 &5623774859421007312
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5562508959717975316}
m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068}
m_GameObject: {fileID: 4990122376453678954}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 4, y: 4, z: 4}
m_LocalScale: {x: 100, y: 100, z: 100}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
--- !u!33 &8202756229782941707
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &8765257102886220405
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5562508959717975316}
m_GameObject: {fileID: 4990122376453678954}
m_Mesh: {fileID: -3891180852058532425, guid: e759ea72d211f83428b6925b0d4f07c5, type: 3}
--- !u!23 &6211304039146407105
--- !u!23 &6791575215690237631
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5562508959717975316}
m_GameObject: {fileID: 4990122376453678954}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
@ -83,15 +82,3 @@ MeshRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!114 &-5200469951853559481
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5562508959717975316}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f69ad4143a75ab04eb2460a58ce4c386, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2910b959e5d692044872758ad0515214
guid: 81bb1e99ebc5c0d4c8f5429d6a7f513a
PrefabImporter:
externalObjects: {}
userData:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2efaf32e940c7de40856686f673eae42
guid: 4a67fa87504b28e4fb9195df9ddeaf1f
PrefabImporter:
externalObjects: {}
userData:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2867c644cac2f7b488d4acbc11bd2ea4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -19,6 +19,7 @@ public class Jsonanalyze : MonoBehaviour
// str = str.Replace("\\n", "\n");
// str = str.Replace(" ", "");
// str = str.Replace("\t", "");
Debug.Log($"str==={str}");
if (str.Length > 2)
{
if (str[0] == '"')

View File

@ -484,10 +484,10 @@ public class View_Panel2 : XUIPanel
start_training_btn.onClick.AddListener(() =>
{
GameMain.model = false;
SceneManager.LoadScene("AdamTraining_pilot_terminal_panl 1");
//加入房间
string RoomName = "joinroom " + currentRoomName;
_ = AdamSync.SyncCreateRoom.SendMessageAsync(RoomName);
//SceneManager.LoadScene("Training_pilot_terminal_panl");
});

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.173026, g: 0.30194494, b: 0.57885855, a: 1}
m_IndirectSpecularColor: {r: 0.16745728, g: 0.30760273, b: 0.6428225, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -5531,7 +5531,7 @@ Camera:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 45083524}
m_Enabled: 0
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.30768365, g: 0.36029273, b: 0.40493077, a: 1}
@ -11761,7 +11761,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 250950117}
m_LocalRotation: {x: 0.2107982, y: 0.55143553, z: -0.14644645, w: 0.7937483}
m_LocalRotation: {x: 0.4160826, y: -0.0817116, z: 0.0375732, w: 0.90486836}
m_LocalPosition: {x: -13.70872, y: 9.276348, z: -11.36977}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
@ -17623,7 +17623,7 @@ Camera:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 366732980}
m_Enabled: 0
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.39735296, g: 0.46529412, b: 0.52294123, a: 0.6}
@ -41120,7 +41120,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1242063470}
m_LocalRotation: {x: -0.17778087, y: -0.21137618, z: -0.8807594, w: -0.38467774}
m_LocalRotation: {x: -0.7070096, y: -0.011723739, z: -0.7070096, w: -0.011723674}
m_LocalPosition: {x: 0.5529245, y: 0, z: 0}
m_LocalScale: {x: 1.1074, y: 1.10745, z: 1.10745}
m_Children: []
@ -41808,6 +41808,8 @@ MonoBehaviour:
spawnPos: {fileID: 1618372688}
userIds:
tenkokuModule: {fileID: 1820978573}
modelsInfo:
models: []
--- !u!4 &1436809530
Transform:
m_ObjectHideFlags: 0
@ -53629,7 +53631,7 @@ MonoBehaviour:
useAutoFX: 1
systemTime: 34200
enableAutoAdvance: 1
mainCamera: {fileID: 2057422025}
mainCamera: {fileID: 0}
manualCamera: {fileID: 0}
cameraTypeIndex: 0
ambientTypeIndex: 0
@ -53958,7 +53960,7 @@ MonoBehaviour:
showConfigTime: 0
showConfigAtmos: 0
showConfigWeather: 0
showIBL: 0
showIBL: 1
allowMultiLights: 0
skyBrightness: 0.6
mieAmount: 0
@ -54007,13 +54009,13 @@ MonoBehaviour:
galaxyTexIndex: 0
galaxyTex: {fileID: 2800000, guid: b2601fc8bfd261c4cabb80a8839b8f33, type: 3}
galaxyCubeTex: {fileID: 0}
useCamera: {fileID: 2057422025}
useCameraCam: {fileID: 2057422026}
useCamera: {fileID: 0}
useCameraCam: {fileID: 0}
sunlightObject: {fileID: 1242063471}
sunSphereObject: {fileID: 198973213}
moonlightObject: {fileID: 639984703}
moonLightAmt: 0.7698858
moonPhase: 0.38494286
moonLightAmt: 0.90791565
moonPhase: 0.54604214
ambientCol: {r: 1, g: 1, b: 1, a: 1}
colorSun: {r: 1, g: 0.99607843, b: 0.9843137, a: 1}
colorMoon: {r: 0.4392157, g: 0.5921569, b: 0.69803923, a: 1}
@ -54142,7 +54144,7 @@ MonoBehaviour:
weather_lightningDir: 110
weather_lightningRange: 180
lightningColor: {r: 0.6898789, g: 0.78019774, b: 0.8088235, a: 0.5019608}
ecldiff: -138.07584
ecldiff: 0
fogDist: 0.9009
atmosphereDensity: 0.5
horizonDensity: 2
@ -54361,7 +54363,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 521215109
randSeed: 548750171
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -69803,112 +69805,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2020143257}
m_CullTransparentMesh: 0
--- !u!1001 &2057422024
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 698992079258812567, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_Name
value: "\u4E3B\u5E2D\u53F0\u573A\u666F"
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalPosition.x
value: 2204
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalPosition.y
value: 135
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalPosition.z
value: -1033
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_RootOrder
value: 12
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079258812568, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079431348513, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 698992079431348515, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_BackGroundColor.r
value: 0.39735296
objectReference: {fileID: 0}
- target: {fileID: 698992079431348515, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_BackGroundColor.g
value: 0.46529412
objectReference: {fileID: 0}
- target: {fileID: 698992079431348515, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_BackGroundColor.b
value: 0.52294123
objectReference: {fileID: 0}
- target: {fileID: 698992079431348515, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
propertyPath: m_BackGroundColor.a
value: 0.6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 55335b6cb15262a40b7c18e7a167f904, type: 3}
--- !u!4 &2057422025 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 698992079431348516, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
m_PrefabInstance: {fileID: 2057422024}
m_PrefabAsset: {fileID: 0}
--- !u!20 &2057422026 stripped
Camera:
m_CorrespondingSourceObject: {fileID: 698992079431348515, guid: 55335b6cb15262a40b7c18e7a167f904,
type: 3}
m_PrefabInstance: {fileID: 2057422024}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2059622878
GameObject:
m_ObjectHideFlags: 0
@ -75560,6 +75456,406 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 28}
m_Pivot: {x: 0.5, y: 1}
--- !u!1001 &698992078664493837
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 698992079437120592}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalPosition.x
value: -2518
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalPosition.z
value: 1163
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8234276431080808104, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_Name
value: "\u4E3B\u5E2D\u53F0\u573A\u666F(2)"
objectReference: {fileID: 0}
- target: {fileID: 3060015095444160008, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 16a6ac691db1632448c10c4b509089fd, type: 3}
--- !u!4 &698992078664493838 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 16a6ac691db1632448c10c4b509089fd,
type: 3}
m_PrefabInstance: {fileID: 698992078664493837}
m_PrefabAsset: {fileID: 0}
--- !u!1 &698992078863223868
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 698992078863223869}
- component: {fileID: 698992078863223871}
- component: {fileID: 698992078863223870}
m_Layer: 0
m_Name: Terrain
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 2147483647
m_IsActive: 1
--- !u!4 &698992078863223869
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992078863223868}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -3604, y: -8, z: -1214.3}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 698992079437120592}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!154 &698992078863223870
TerrainCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992078863223868}
m_Material: {fileID: 0}
m_Enabled: 1
m_TerrainData: {fileID: 15600000, guid: c0b299817880e7f43b42aadfed2f817a, type: 2}
m_EnableTreeColliders: 1
--- !u!218 &698992078863223871
Terrain:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992078863223868}
m_Enabled: 1
serializedVersion: 6
m_TerrainData: {fileID: 0}
m_TreeDistance: 5000
m_TreeBillboardDistance: 50
m_TreeCrossFadeLength: 5
m_TreeMaximumFullLODCount: 50
m_DetailObjectDistance: 80
m_DetailObjectDensity: 1
m_HeightmapPixelError: 5
m_SplatMapDistance: 1000
m_HeightmapMaximumLOD: 0
m_ShadowCastingMode: 2
m_DrawHeightmap: 1
m_DrawInstanced: 0
m_DrawTreesAndFoliage: 1
m_ReflectionProbeUsage: 1
m_MaterialTemplate: {fileID: 10652, guid: 0000000000000000f000000000000000, type: 0}
m_BakeLightProbesForTrees: 1
m_PreserveTreePrototypeLayers: 0
m_DeringLightProbesForTrees: 1
m_ScaleInLightmap: 0.0256
m_LightmapParameters: {fileID: 15203, guid: 0000000000000000f000000000000000, type: 0}
m_GroupingID: 0
m_RenderingLayerMask: 1
m_AllowAutoConnect: 1
--- !u!1 &698992078988284973
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 698992078988284975}
- component: {fileID: 698992078988284974}
m_Layer: 0
m_Name: Reflection Probe
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!215 &698992078988284974
ReflectionProbe:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992078988284973}
m_Enabled: 1
serializedVersion: 2
m_Type: 0
m_Mode: 1
m_RefreshMode: 0
m_TimeSlicingMode: 0
m_Resolution: 128
m_UpdateFrequency: 0
m_BoxSize: {x: 2046.2083, y: 813.35095, z: 2063.7654}
m_BoxOffset: {x: 469.24792, y: 125.315125, z: -295.26797}
m_NearClip: 0.3
m_FarClip: 1000
m_ShadowDistance: 100
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_IntensityMultiplier: 1
m_BlendDistance: 1
m_HDR: 1
m_BoxProjection: 0
m_RenderDynamicObjects: 0
m_UseOcclusionCulling: 1
m_Importance: 1
m_CustomBakedTexture: {fileID: 0}
--- !u!4 &698992078988284975
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992078988284973}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -470.8, y: 151.6, z: 304.3381}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 698992079437120592}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &698992079016356353
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 698992079016356355}
- component: {fileID: 698992079016356354}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &698992079016356354
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992079016356353}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &698992079016356355
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992079016356353}
m_LocalRotation: {x: -0.112337604, y: -0.8737029, z: 0.40741414, w: -0.24090946}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 698992079437120592}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -210.831, z: 0}
--- !u!1 &698992079120530497
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 698992079120530499}
- component: {fileID: 698992079120530498}
m_Layer: 8
m_Name: PostVolume
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &698992079120530498
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992079120530497}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3}
m_Name:
m_EditorClassIdentifier:
sharedProfile: {fileID: 11400000, guid: f7cb712597617514a8ed7f910f4d495d, type: 2}
isGlobal: 1
blendDistance: 0
weight: 1
priority: 0
--- !u!4 &698992079120530499
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992079120530497}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 50, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 698992079437120592}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &698992079437120592
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698992079437120607}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 2204, y: 135, z: -1033}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 698992079120530499}
- {fileID: 698992079016356355}
- {fileID: 698992078988284975}
- {fileID: 698992078863223869}
- {fileID: 698992078664493838}
m_Father: {fileID: 0}
m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &698992079437120607
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 698992079437120592}
m_Layer: 0
m_Name: "\u4E3B\u5E2D\u53F0\u573A\u666F"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!218 &4900298105518847811
Terrain:
m_ObjectHideFlags: 0

View File

@ -13,9 +13,12 @@ public class GameManager : MonoBehaviour
public Transform spawnPos;
public List<ulong> userIds = new List<ulong>();
public TenkokuModule tenkokuModule;
public List<ModelInfo> modelsInfo = new List<ModelInfo>();
// Start is called before the first frame update
private void Start()
{
//SetWeatherValue();
SetModelValue();
SyncCreateRoom.getroomusersRequset += OnGetRoomUsers;
SyncCreateRoom.send2roomRequset += OnOtherPlayerOnline;
SyncPlayerTransform spt = Instantiate(playerTransformPrefab);
@ -29,7 +32,7 @@ public class GameManager : MonoBehaviour
}
public void OnOtherPlayerOnline(string msg)
{
@ -91,7 +94,25 @@ public class GameManager : MonoBehaviour
public void SetWeatherValue()
{
tenkokuModule.weather_RainAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvRain));
tenkokuModule.weather_SnowAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvSnow));
tenkokuModule.weather_WindAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvWindSpeed));
tenkokuModule.weather_WindDir = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvWindDir));
tenkokuModule.weather_lightning = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvLight));
}
public void SetModelValue()
{
string info = UIBootstrap.Instance.currentSceneInfo.data.DeviceContent;
modelsInfo = Jsonanalyze.FromJson<List<ModelInfo>>(info);
for (int i = 0; i < modelsInfo.Count; i++)
{
GameObject obj = Resources.Load<GameObject>(modelsInfo[i].str);
GameObject go = Instantiate(obj);
go.transform.position = new Vector3(float.Parse( modelsInfo[i].x.ToString()), float.Parse(modelsInfo[i].y.ToString()), float.Parse(modelsInfo[i].z.ToString()));
}
}
@ -102,4 +123,14 @@ public class GameManager : MonoBehaviour
SyncCreateRoom.getroomusersRequset -= OnGetRoomUsers;
SyncCreateRoom.send2roomRequset -= OnOtherPlayerOnline;
}
}
[Serializable]
public class ModelInfo
{
public string str;
public double x;
public double y;
public double z;
}