Skip to content

Commit

Permalink
#5 Conditional compilation so that we can test with or without networ…
Browse files Browse the repository at this point in the history
…iking
  • Loading branch information
Yisas committed Feb 22, 2017
1 parent 7f401c6 commit 6f93861
Show file tree
Hide file tree
Showing 8 changed files with 676 additions and 197 deletions.
File renamed without changes.
422 changes: 422 additions & 0 deletions Assets/Prefabs/Test/TestGroundController.prefab

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Assets/Prefabs/Test/TestGroundController.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

319 changes: 158 additions & 161 deletions Assets/Scene/Test Scenes/Networking Test Jesus.unity
Original file line number Diff line number Diff line change
Expand Up @@ -91,123 +91,6 @@ NavMeshSettings:
cellSize: 0.16666666
accuratePlacement: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &15464542
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 15464545}
- component: {fileID: 15464544}
- component: {fileID: 15464543}
m_Layer: 0
m_Name: NetworkManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &15464543
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 15464542}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 227461547, guid: dc443db3e92b4983b9738c1131f555cb, type: 3}
m_Name:
m_EditorClassIdentifier:
manager: {fileID: 0}
showGUI: 1
offsetX: 0
offsetY: 0
--- !u!114 &15464544
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 15464542}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4656f83b79b4765408c9de13d3ee137c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_NetworkPort: 7777
m_ServerBindToIP: 0
m_ServerBindAddress:
m_NetworkAddress: localhost
m_DontDestroyOnLoad: 1
m_RunInBackground: 1
m_ScriptCRCCheck: 1
m_MaxDelay: 0.01
m_LogLevel: 2
m_PlayerPrefab: {fileID: 1395371510902202, guid: 499e753ae5a54d84ab76d12e40cda9e8,
type: 2}
m_AutoCreatePlayer: 1
m_PlayerSpawnMethod: 1
m_OfflineScene:
m_OnlineScene:
m_SpawnPrefabs:
- {fileID: 1166831496739124, guid: 91b3a489d25cb294689da4a02db3e063, type: 2}
m_CustomConfig: 0
m_MaxConnections: 4
m_ConnectionConfig:
m_PacketSize: 1500
m_FragmentSize: 500
m_ResendTimeout: 1200
m_DisconnectTimeout: 2000
m_ConnectTimeout: 2000
m_MinUpdateTimeout: 10
m_PingTimeout: 500
m_ReducedPingTimeout: 100
m_AllCostTimeout: 20
m_NetworkDropThreshold: 5
m_OverflowDropThreshold: 5
m_MaxConnectionAttempt: 10
m_AckDelay: 33
m_MaxCombinedReliableMessageSize: 100
m_MaxCombinedReliableMessageCount: 10
m_MaxSentMessageQueueSize: 128
m_IsAcksLong: 0
m_UsePlatformSpecificProtocols: 0
m_WebSocketReceiveBufferMaxSize: 0
m_Channels: []
m_GlobalConfig:
m_ThreadAwakeTimeout: 1
m_ReactorModel: 0
m_ReactorMaximumReceivedMessages: 1024
m_ReactorMaximumSentMessages: 1024
m_MaxPacketSize: 2000
m_Channels: 0500000000000000
m_UseWebSockets: 0
m_UseSimulator: 0
m_SimulatedLatency: 1
m_PacketLossPercentage: 0
m_MaxBufferedPackets: 16
m_AllowFragmentation: 1
m_MatchHost: mm.unet.unity3d.com
m_MatchPort: 443
matchName: default
matchSize: 4
isNetworkActive: 0
matchMaker: {fileID: 0}
groundPlayer: {fileID: 1395371510902202, guid: 499e753ae5a54d84ab76d12e40cda9e8,
type: 2}
--- !u!4 &15464545
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 15464542}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5062201, y: -5.2193146, z: -8.537731}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &55465488
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -481,7 +364,7 @@ Transform:
- {fileID: 365695197}
- {fileID: 1816605294}
m_Father: {fileID: 0}
m_RootOrder: 8
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &284033577
GameObject:
Expand Down Expand Up @@ -685,6 +568,52 @@ Transform:
m_Father: {fileID: 232495126}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &382953523
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalPosition.x
value: 10.3
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalPosition.y
value: 0.23
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalPosition.z
value: 10.1
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_RootOrder
value: 8
objectReference: {fileID: 0}
- target: {fileID: 1726243983663172, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
propertyPath: m_TagString
value: PlayerGround
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 672e1fcb550560842b0bcbf854f86526, type: 2}
m_IsPrefabParent: 0
--- !u!1 &421965463
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1234,6 +1163,111 @@ MeshFilter:
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 658574699}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1001 &674434897
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 731798386}
m_Modifications:
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 224295921807954936, guid: cb6030357059aed43adc22a45757549d,
type: 2}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: cb6030357059aed43adc22a45757549d, type: 2}
m_IsPrefabParent: 0
--- !u!4 &731798386 stripped
Transform:
m_PrefabParentObject: {fileID: 4015382092279680, guid: 672e1fcb550560842b0bcbf854f86526,
type: 2}
m_PrefabInternal: {fileID: 382953523}
--- !u!1 &800169583
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1982,48 +2016,6 @@ MeshFilter:
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1236949929}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1001 &1301472210
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalPosition.x
value: 10.3
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalPosition.y
value: 0.23
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalPosition.z
value: 10.1
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4636740846740818, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
propertyPath: m_RootOrder
value: 9
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 499e753ae5a54d84ab76d12e40cda9e8, type: 2}
m_IsPrefabParent: 0
--- !u!1 &1336819450
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2521,7 +2513,7 @@ Prefab:
- target: {fileID: 20579923451687304, guid: 2add31784925e5e4d9fdf41525eadf67,
type: 2}
propertyPath: m_TargetDisplay
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1553020305319734, guid: 2add31784925e5e4d9fdf41525eadf67, type: 2}
propertyPath: m_IsActive
Expand Down Expand Up @@ -2591,6 +2583,11 @@ Prefab:
propertyPath: clockCompareMarginOfError
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: 114472324765550632, guid: 1f5a5c2f5a2e05644b7560c9e2f70755,
type: 2}
propertyPath: timerText
value:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 1f5a5c2f5a2e05644b7560c9e2f70755, type: 2}
m_IsPrefabParent: 0
Expand Down
Loading

0 comments on commit 6f93861

Please sign in to comment.