mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
New Basic Example (#985)
This commit is contained in:
parent
eb4c00f8e4
commit
66f7693855
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a13143cc2226447cea80b7ffd98ae242
|
||||
guid: 4f821a97809492a479cac0843442e245
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
@ -1,129 +1,271 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1554290044306088}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1554290044306088
|
||||
--- !u!1 &1088833922664441133
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4844255773121666}
|
||||
- component: {fileID: 23253115980536592}
|
||||
- component: {fileID: 102891534687196182}
|
||||
- component: {fileID: 114842108610686380}
|
||||
- component: {fileID: 114417995511299850}
|
||||
m_Layer: 0
|
||||
- component: {fileID: 1088833922664441134}
|
||||
- component: {fileID: 1088833922664441128}
|
||||
- component: {fileID: 1088833922664441135}
|
||||
m_Layer: 5
|
||||
m_Name: PlayerNameText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1088833922664441134
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833922664441133}
|
||||
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: 1088833923132447023}
|
||||
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: 60, y: -15}
|
||||
m_SizeDelta: {x: 120, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1088833922664441128
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833922664441133}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &1088833922664441135
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833922664441133}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 22
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: Player 00
|
||||
--- !u!1 &1088833923132447022
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1088833923132447023}
|
||||
- component: {fileID: 1088833923132446996}
|
||||
- component: {fileID: 1088833923132447019}
|
||||
- component: {fileID: 1088833923132447017}
|
||||
- component: {fileID: 1088833923132447018}
|
||||
m_Layer: 5
|
||||
m_Name: Player
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4844255773121666
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1554290044306088}
|
||||
--- !u!224 &1088833923132447023
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833923132447022}
|
||||
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_Children:
|
||||
- {fileID: 1088833922664441134}
|
||||
- {fileID: 1088833924003616757}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &23253115980536592
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1554290044306088}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 10100, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
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!102 &102891534687196182
|
||||
TextMesh:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1554290044306088}
|
||||
m_Text: Player 1
|
||||
m_OffsetZ: 0
|
||||
m_CharacterSize: 1
|
||||
m_LineSpacing: 1
|
||||
m_Anchor: 0
|
||||
m_Alignment: 0
|
||||
m_TabSize: 4
|
||||
m_FontSize: 0
|
||||
m_FontStyle: 0
|
||||
m_RichText: 1
|
||||
m_Font: {fileID: 0}
|
||||
m_Color:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
--- !u!114 &114417995511299850
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 120, y: 60}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1088833923132446996
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833923132447022}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &1088833923132447019
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1554290044306088}
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833923132447022}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 900a7585920d7470fb7259ab56a034aa, type: 3}
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_RaycastTarget: 0
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
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
|
||||
--- !u!114 &1088833923132447017
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833923132447022}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a472ac3ae1701d149861871cf416a46d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncInterval: 0.1
|
||||
data: 0
|
||||
text: {fileID: 102891534687196182}
|
||||
--- !u!114 &114842108610686380
|
||||
rectTransform: {fileID: 1088833923132447023}
|
||||
image: {fileID: 1088833923132447019}
|
||||
playerNameText: {fileID: 1088833922664441135}
|
||||
playerDataText: {fileID: 1088833924003616759}
|
||||
--- !u!114 &1088833923132447018
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1554290044306088}
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833923132447022}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9b91ecbcc199f4492b9a91e820070131, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
serverOnly: 0
|
||||
localPlayerAuthority: 0
|
||||
m_AssetId: 22f1fa3a0aff72b46a371f667bb4fb30
|
||||
m_SceneId: 0
|
||||
m_ServerOnly: 0
|
||||
m_LocalPlayerAuthority: 0
|
||||
m_AssetId: 9a0fd4c42c5d249c8896b66cc9a2985c
|
||||
--- !u!1 &1088833924003616756
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1088833924003616757}
|
||||
- component: {fileID: 1088833924003616752}
|
||||
- component: {fileID: 1088833924003616759}
|
||||
m_Layer: 5
|
||||
m_Name: PlayerDataText
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1088833924003616757
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833924003616756}
|
||||
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: 1088833923132447023}
|
||||
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: 60, y: -45}
|
||||
m_SizeDelta: {x: 120, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1088833924003616752
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833924003616756}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &1088833924003616759
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1088833924003616756}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 22
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 'Data: 000'
|
||||
|
@ -1,8 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9a0fd4c42c5d249c8896b66cc9a2985c
|
||||
NativeFormatImporter:
|
||||
guid: 22f1fa3a0aff72b46a371f667bb4fb30
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
@ -1,53 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1516195071620018}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1516195071620018
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4235086016512766}
|
||||
- component: {fileID: 114299895378921528}
|
||||
m_Layer: 0
|
||||
m_Name: SpawnPoint
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4235086016512766
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1516195071620018}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 4, y: 1, z: 5}
|
||||
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}
|
||||
--- !u!114 &114299895378921528
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1516195071620018}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 41f84591ce72545258ea98cb7518d8b9, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56acde6d1ed944f34aea4e731bc7d5c7
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,11 +1,16 @@
|
||||
# Basic example
|
||||
# Basic Example
|
||||
|
||||
Show how to set up a NetworkManager, players and connect a server to a client
|
||||
This is a bare bones example of a running game with Network Manager and UI prefab players:
|
||||
|
||||
1) Open the scene in unity
|
||||
2) File -> Build and run as standalone
|
||||
3) When the standalone starts, click on Host
|
||||
4) the standalone starts as both a client and a server and starts listening to port 7777
|
||||
5) From the editor click play
|
||||
6) Click connect
|
||||
7) Now you will see both players in both the standalone and client, and their data will be synchornized
|
||||
1. Remove all scenes from Build Settings, then add the Example scene alone.
|
||||
|
||||
2. Open the Example scene and build the project.
|
||||
|
||||
3. In the editor, click Play, and LAN Host or LAN Server...it will be listening on port 7777.
|
||||
- If you clicked LAN Host, the host player will appear as Player 00.
|
||||
|
||||
4. Run one or more instances (up to 16 total players) of the built application.
|
||||
|
||||
5. Click LAN Client on each instance.
|
||||
|
||||
6. Now you will see all players in the editor and the clients, all with data being updated and synchronized.
|
||||
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bf7b6af77cc0a478e809f6e77b878b2a
|
||||
guid: 16f46473489d3364badc2f37c4db8634
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
@ -13,7 +13,7 @@ OcclusionCullingSettings:
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 8
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
@ -38,7 +38,8 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481694, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -49,16 +50,14 @@ LightmapSettings:
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 9
|
||||
serializedVersion: 10
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
@ -114,103 +113,102 @@ NavMeshSettings:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &276578540
|
||||
Prefab:
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (5)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1001 &374028240
|
||||
Prefab:
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1 &437631049
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 437631052}
|
||||
- component: {fileID: 437631051}
|
||||
@ -226,8 +224,9 @@ GameObject:
|
||||
--- !u!114 &437631050
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437631049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
@ -240,8 +239,9 @@ MonoBehaviour:
|
||||
--- !u!114 &437631051
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437631049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
@ -251,22 +251,24 @@ MonoBehaviour:
|
||||
dontDestroyOnLoad: 1
|
||||
runInBackground: 1
|
||||
startOnHeadless: 1
|
||||
serverTickRate: 30
|
||||
showDebugMessages: 0
|
||||
offlineScene:
|
||||
onlineScene:
|
||||
transport: {fileID: 437631053}
|
||||
networkAddress: localhost
|
||||
maxConnections: 4
|
||||
maxConnections: 6
|
||||
playerPrefab: {fileID: 1554290044306088, guid: 9a0fd4c42c5d249c8896b66cc9a2985c,
|
||||
type: 2}
|
||||
type: 3}
|
||||
autoCreatePlayer: 1
|
||||
playerSpawnMethod: 1
|
||||
spawnPrefabs: []
|
||||
--- !u!4 &437631052
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437631049}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
@ -278,156 +280,195 @@ Transform:
|
||||
--- !u!114 &437631053
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 437631049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c7424c1070fad4ba2a7a96b02fbeb4bb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
OnClientConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
OnClientDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventArraySegment, Mirror, Version=0.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=null
|
||||
OnClientError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventException, Mirror, Version=0.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=null
|
||||
OnClientDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
OnServerConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventInt, Mirror, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
OnServerDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventIntArraySegment, Mirror, Version=0.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=null
|
||||
OnServerError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventIntException, Mirror, Version=0.0.0.0, Culture=neutral,
|
||||
PublicKeyToken=null
|
||||
OnServerDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: Mirror.UnityEventInt, Mirror, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
port: 7777
|
||||
NoDelay: 1
|
||||
serverMaxMessageSize: 16384
|
||||
clientMaxMessageSize: 16384
|
||||
--- !u!1001 &525505044
|
||||
Prefab:
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (4)
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1447947498
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 7
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 6
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (3)
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
--- !u!1001 &1553734352
|
||||
Prefab:
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1001 &1447947498
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (3)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 6
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1001 &1553734352
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1 &1565352265
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1565352269}
|
||||
- component: {fileID: 1565352268}
|
||||
@ -443,27 +484,35 @@ GameObject:
|
||||
--- !u!81 &1565352266
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1565352265}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &1565352267
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1565352265}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1565352268
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1565352265}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_GateFitMode: 2
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
@ -493,8 +542,9 @@ Camera:
|
||||
--- !u!4 &1565352269
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1565352265}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
@ -504,57 +554,57 @@ Transform:
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1682071700
|
||||
Prefab:
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
- target: {fileID: 1516195071620018, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SpawnPoint (2)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4235086016512766, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 2}
|
||||
m_IsPrefabParent: 0
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 56acde6d1ed944f34aea4e731bc7d5c7, type: 3}
|
||||
--- !u!1 &1888111656
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1888111658}
|
||||
- component: {fileID: 1888111657}
|
||||
@ -568,8 +618,9 @@ GameObject:
|
||||
--- !u!108 &1888111657
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1888111656}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 8
|
||||
@ -595,6 +646,7 @@ Light:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
@ -604,8 +656,9 @@ Light:
|
||||
--- !u!4 &1888111658
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1888111656}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5ab49b2f62014b1281d48716917e613
|
||||
guid: 9c5291659f25af9409bbc25a2d37d628
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
@ -1,34 +1,56 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Mirror.Examples.Basic
|
||||
namespace Mirror.Examples.Basic2
|
||||
{
|
||||
|
||||
public class Player : NetworkBehaviour
|
||||
{
|
||||
[Header("Player Components")]
|
||||
public RectTransform rectTransform;
|
||||
public Image image;
|
||||
|
||||
[Header("Child Text Objects")]
|
||||
public Text playerNameText;
|
||||
public Text playerDataText;
|
||||
|
||||
[SyncVar]
|
||||
public int data;
|
||||
|
||||
public TextMesh text;
|
||||
|
||||
int playerNo;
|
||||
[SyncVar]
|
||||
int playerData;
|
||||
[SyncVar]
|
||||
Color playerColor;
|
||||
|
||||
public override void OnStartServer()
|
||||
{
|
||||
base.OnStartServer();
|
||||
playerNo = connectionToClient.connectionId;
|
||||
playerColor = Random.ColorHSV(0f, 1f, 0.9f, 0.9f, 1f, 1f);
|
||||
InvokeRepeating(nameof(UpdateData), 1, 1);
|
||||
}
|
||||
|
||||
public void UpdateData()
|
||||
void UpdateData()
|
||||
{
|
||||
data = Random.Range(0, 10);
|
||||
playerData = Random.Range(100, 1000);
|
||||
}
|
||||
|
||||
public void Update()
|
||||
void Start()
|
||||
{
|
||||
transform.SetParent(GameObject.Find("PlayersPanel").transform);
|
||||
|
||||
int x = 100 + ((playerNo % 4) * 150);
|
||||
int y = -170 - ((playerNo / 4) * 80);
|
||||
rectTransform.anchoredPosition = new Vector2(x, y);
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
// shade the panel background for the local player
|
||||
if (isLocalPlayer)
|
||||
text.color = Color.red;
|
||||
image.color = new Color(1f, 1f, 1f, 0.1f);
|
||||
|
||||
text.text = $"Player {netId}\ndata={data}";
|
||||
playerNameText.color = playerColor;
|
||||
playerNameText.text = string.Format("Player {0:00}", playerNo);
|
||||
playerDataText.text = string.Format("Data: {0:000}", playerData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 900a7585920d7470fb7259ab56a034aa
|
||||
guid: a472ac3ae1701d149861871cf416a46d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
Loading…
Reference in New Issue
Block a user