This commit is contained in:
2026-04-20 15:35:15 +05:30
parent dd509800c2
commit 8860a15bdd
7 changed files with 1286 additions and 712 deletions
File diff suppressed because one or more lines are too long
+35 -69
View File
@@ -1,70 +1,36 @@
Logger initiated at 4/20/2026 12:35:01 PM
Logger initiated at 4/20/2026 3:18:03 PM
[4/20/2026 12:35:01 PM] Invalid Room port
[4/20/2026 12:35:07 PM] Game started On Server
[4/20/2026 12:35:16 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:16 PM] launching puck at (-0.13, -5.00) with (8.73, 348.34) force
[4/20/2026 12:35:19 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:19 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:24 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:24 PM] launching puck at (-4.87, 1.12) with (339.56, -78.24) force
[4/20/2026 12:35:27 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:27 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:31 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:31 PM] launching puck at (-0.16, -5.00) with (11.38, 348.27) force
[4/20/2026 12:35:34 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:34 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:38 PM] force = 70 * 0.9068644 = 63.48051
[4/20/2026 12:35:38 PM] launching puck at (1.95, -3.56) with (-123.52, 225.95) force
[4/20/2026 12:35:38 PM] Score changed from 0 to 1
[4/20/2026 12:35:38 PM] Score changed from 0 to 1
[4/20/2026 12:35:41 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:41 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:44 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:44 PM] launching puck at (-0.01, -5.00) with (0.88, 348.45) force
[4/20/2026 12:35:47 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:47 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:50 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:50 PM] launching puck at (2.67, 4.23) with (-185.81, -294.78) force
[4/20/2026 12:35:53 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:53 PM] Selected team changed from Blue to Red
[4/20/2026 12:35:54 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:54 PM] launching puck at (0.71, -4.95) with (-49.46, 344.93) force
[4/20/2026 12:35:57 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:57 PM] Selected team changed from Red to Blue
[4/20/2026 12:35:58 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:35:58 PM] launching puck at (1.66, -4.72) with (-115.84, 328.63) force
[4/20/2026 12:36:00 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:00 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:02 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:02 PM] launching puck at (1.10, -4.88) with (-76.67, 339.91) force
[4/20/2026 12:36:05 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:05 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:09 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:09 PM] launching puck at (1.23, -4.85) with (-85.93, 337.69) force
[4/20/2026 12:36:11 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:11 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:13 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:13 PM] launching puck at (-1.53, -4.76) with (106.34, 331.83) force
[4/20/2026 12:36:15 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:15 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:17 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:17 PM] launching puck at (-3.08, -3.94) with (214.66, 274.48) force
[4/20/2026 12:36:17 PM] Score changed from 1 to 2
[4/20/2026 12:36:17 PM] Score changed from 1 to 2
[4/20/2026 12:36:20 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:20 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:22 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:22 PM] launching puck at (0.01, -5.00) with (-0.52, 348.45) force
[4/20/2026 12:36:26 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:26 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:30 PM] force = 70 * 0.3522352 = 24.65646
[4/20/2026 12:36:30 PM] launching puck at (0.69, 0.88) with (-16.97, -21.63) force
[4/20/2026 12:36:33 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:33 PM] Selected team changed from Blue to Red
[4/20/2026 12:36:34 PM] force = 70 * 0.9955804 = 69.69063
[4/20/2026 12:36:34 PM] launching puck at (-0.44, -4.98) with (30.69, 347.10) force
[4/20/2026 12:36:34 PM] Score changed from 2 to 3
[4/20/2026 12:36:34 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:34 PM] Selected team changed from Red to Blue
[4/20/2026 12:36:34 PM] Score changed from 2 to 3
[4/20/2026 3:18:03 PM] Invalid Room port
[4/20/2026 3:18:14 PM] Game started On Server
[4/20/2026 3:18:29 PM] Selected team changed from Red to Blue
[4/20/2026 3:18:34 PM] Selected team changed from Red to Blue
[4/20/2026 3:18:44 PM] Selected team changed from Blue to Red
[4/20/2026 3:19:13 PM] Selected team changed from Red to Blue
[4/20/2026 3:19:16 PM] Selected team changed from Blue to Red
[4/20/2026 3:19:31 PM] Selected team changed from Red to Blue
[4/20/2026 3:19:46 PM] Selected team changed from Blue to Red
[4/20/2026 3:20:01 PM] Selected team changed from Red to Blue
[4/20/2026 3:20:16 PM] Selected team changed from Blue to Red
[4/20/2026 3:20:31 PM] Selected team changed from Red to Blue
[4/20/2026 3:20:46 PM] Selected team changed from Blue to Red
[4/20/2026 3:21:01 PM] Selected team changed from Red to Blue
[4/20/2026 3:21:16 PM] Selected team changed from Blue to Red
[4/20/2026 3:21:31 PM] Selected team changed from Red to Blue
[4/20/2026 3:21:46 PM] Selected team changed from Blue to Red
[4/20/2026 3:22:01 PM] Selected team changed from Red to Blue
[4/20/2026 3:22:16 PM] Selected team changed from Blue to Red
[4/20/2026 3:22:31 PM] Selected team changed from Red to Blue
[4/20/2026 3:22:46 PM] Selected team changed from Blue to Red
[4/20/2026 3:23:01 PM] Selected team changed from Red to Blue
[4/20/2026 3:23:16 PM] Selected team changed from Blue to Red
[4/20/2026 3:23:31 PM] Selected team changed from Red to Blue
[4/20/2026 3:23:46 PM] Selected team changed from Blue to Red
[4/20/2026 3:24:02 PM] Selected team changed from Red to Blue
[4/20/2026 3:24:17 PM] Selected team changed from Blue to Red
[4/20/2026 3:24:32 PM] Selected team changed from Red to Blue
[4/20/2026 3:24:47 PM] Selected team changed from Blue to Red
[4/20/2026 3:25:02 PM] Selected team changed from Red to Blue
[4/20/2026 3:25:17 PM] Selected team changed from Blue to Red
[4/20/2026 3:25:32 PM] Selected team changed from Red to Blue
[4/20/2026 3:25:47 PM] Selected team changed from Blue to Red
[4/20/2026 3:26:02 PM] Selected team changed from Red to Blue
+61 -44
View File
@@ -1604,7 +1604,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 60
currentFrame: 26
--- !u!114 &190156109
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1625,7 +1625,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 760c6cf88a8145a4482c3c17aa2392e7, type: 3}
m_Sprite: {fileID: 21300000, guid: 445729724f4bf0745a057d69bdd5a312, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -1952,7 +1952,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 65
currentFrame: 31
--- !u!114 &210640717
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1973,7 +1973,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d55f5fb4ccc46c143ba3ea2f597a3c13, type: 3}
m_Sprite: {fileID: 21300000, guid: a56b9201a03457f40bd461b3a0941231, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -2525,7 +2525,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &261412632
RectTransform:
m_ObjectHideFlags: 0
@@ -2817,7 +2817,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 64.51
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
@@ -2825,7 +2825,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 42.255
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.y
@@ -2861,7 +2861,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 64.47
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_LocalPosition.x
@@ -3590,6 +3590,7 @@ GameObject:
- component: {fileID: 457077294}
- component: {fileID: 457077296}
- component: {fileID: 457077297}
- component: {fileID: 457077298}
m_Layer: 0
m_Name: NetworkManager
m_TagString: Untagged
@@ -3714,6 +3715,22 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
transport: {fileID: 457077294}
--- !u!114 &457077298
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 457077292}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 333a4e464b877d44abda3fce877fa3be, type: 3}
m_Name:
m_EditorClassIdentifier:
components:
- {fileID: 457077296}
gameObjects: []
activeOnEditor: 1
--- !u!1 &467609672
GameObject:
m_ObjectHideFlags: 0
@@ -4485,7 +4502,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 81
currentFrame: 47
--- !u!114 &592387588
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -4506,7 +4523,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 36db50f747b677040846fc321dc9b505, type: 3}
m_Sprite: {fileID: 21300000, guid: 79e99ee51d4fc3a4a962442cf84ced5e, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -5363,9 +5380,9 @@ RectTransform:
- {fileID: 1482558872}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 60, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &682675538
@@ -5987,7 +6004,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 62
currentFrame: 28
--- !u!114 &753092692
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -6008,7 +6025,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 40a890ac4f887e94dbee8d84669be251, type: 3}
m_Sprite: {fileID: 21300000, guid: dbb69faa346bf5e4499fa38c69a8a0ff, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -7290,7 +7307,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 163.05
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
@@ -7298,7 +7315,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 91.525
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.y
@@ -7334,7 +7351,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 64.47
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_LocalPosition.x
@@ -9353,9 +9370,9 @@ RectTransform:
- {fileID: 592387586}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 450, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1450579969
@@ -9779,7 +9796,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 19
currentFrame: 76
--- !u!114 &1482558874
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -9800,7 +9817,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d647159fe36b2164cabda723c3ec757a, type: 3}
m_Sprite: {fileID: 21300000, guid: a9d22f7d2a384a94f82ee3309839f66f, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -9854,9 +9871,9 @@ RectTransform:
- {fileID: 753092690}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 320, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1482574558
@@ -10891,7 +10908,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 32.88
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
@@ -10899,7 +10916,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 26.44
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.y
@@ -10935,7 +10952,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 64.47
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_LocalPosition.x
@@ -11246,7 +11263,7 @@ MonoBehaviour:
preview: 0
isPlaying: 1
loop: 1
currentFrame: 11
currentFrame: 69
--- !u!114 &1606889215
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -11267,7 +11284,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: b02a8583f7e2f5e4ca83eb7c203e3b0e, type: 3}
m_Sprite: {fileID: 21300000, guid: fbbf653dfb0e6df4ea5de30e7f702548, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -12087,9 +12104,9 @@ RectTransform:
- {fileID: 1606889213}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 580, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1731959164
@@ -13643,9 +13660,9 @@ RectTransform:
- {fileID: 190156107}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 190, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2021820974
@@ -14067,9 +14084,9 @@ RectTransform:
- {fileID: 210640715}
m_Father: {fileID: 1027800498}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 710, y: -60}
m_SizeDelta: {x: 120, y: 120}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2043245331
@@ -14205,7 +14222,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 179.62
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
@@ -14213,7 +14230,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 99.81
objectReference: {fileID: 0}
- target: {fileID: 979772008452690186, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_AnchoredPosition.y
@@ -14249,7 +14266,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 64.47
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_LocalPosition.x
@@ -14741,7 +14758,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 64.47
objectReference: {fileID: 0}
- target: {fileID: 1018686033926137723, guid: 41c45c5369e7ebb42b56eb48dc9f2d85, type: 3}
propertyPath: m_LocalPosition.x
+2 -1
View File
@@ -62,9 +62,10 @@ public class NetManager : NetworkManager
{
Debug.Log("Client disconnected. Reconnecting...");
StartClient();
yield return new WaitForSeconds(reconnectIntervalSeconds);
}
yield return new WaitForSeconds(reconnectIntervalSeconds);
yield return new WaitForSeconds(1);
}
reconnectCoroutine = null;
+30
View File
@@ -0,0 +1,30 @@
using UnityEngine;
public class SetActiveOnEditor : MonoBehaviour
{
public Component[] components;
public GameObject[] gameObjects;
public bool activeOnEditor = true;
void Start()
{
#if UNITY_EDITOR
foreach(var component in components)
{
component.gameObject.SetActive(activeOnEditor);
}
foreach(var gameObject in gameObjects)
{
gameObject.SetActive(activeOnEditor);
}
#else
foreach(var component in components)
{
component.gameObject.SetActive(!activeOnEditor);
}
foreach(var gameObject in gameObjects)
{
gameObject.SetActive(!activeOnEditor);
}
#endif
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 333a4e464b877d44abda3fce877fa3be
File diff suppressed because one or more lines are too long