From 5a0d82b0fc9abb3f4a52647a0b8f3ed9826bf247 Mon Sep 17 00:00:00 2001 From: para Date: Sun, 22 Dec 2024 03:27:14 -0800 Subject: [PATCH] Remove empty component, add spawn points --- Assets/scenes/minimal.scene | 87 +++++++++++++++++++++++++++++++++---- code/MyComponent.cs | 9 ---- 2 files changed, 79 insertions(+), 17 deletions(-) delete mode 100644 code/MyComponent.cs diff --git a/Assets/scenes/minimal.scene b/Assets/scenes/minimal.scene index 2ad40dd..b8f9c98 100644 --- a/Assets/scenes/minimal.scene +++ b/Assets/scenes/minimal.scene @@ -2,17 +2,88 @@ "__guid": "325a4042-0696-43dd-a79d-dcc314299ba3", "GameObjects": [ { - "__guid": "a20e3c3b-a982-496b-ad4c-1b1b7d4a48c0", + "__guid": "90b7d710-535b-4806-9051-9da8a581dde2", "Flags": 0, - "Name": "Scene Information", + "Name": "Singletons", "Enabled": true, - "Components": [ + "Children": [ { - "__type": "Sandbox.SceneInformation", - "__guid": "87d65e65-d9f2-4f20-bd72-434cb9169d2d", - "Description": "", - "SceneTags": "", - "Title": "minimal" + "__guid": "a20e3c3b-a982-496b-ad4c-1b1b7d4a48c0", + "Flags": 0, + "Name": "Scene Information", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.SceneInformation", + "__guid": "87d65e65-d9f2-4f20-bd72-434cb9169d2d", + "Changes": "", + "Description": "", + "SceneTags": "", + "Title": "minimal" + } + ] + }, + { + "__guid": "c671d9fc-5b1a-40db-a233-e545e463bc59", + "Flags": 0, + "Name": "Network Helper", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.NetworkHelper", + "__guid": "f434c4dc-4afe-431b-9fcf-7b99f1bdb914", + "PlayerPrefab": { + "_type": "gameobject", + "prefab": "prefabs/player.prefab" + }, + "SpawnPoints": [], + "StartServer": true + } + ] + } + ] + }, + { + "__guid": "9668fc88-5656-4310-af66-0661227c3907", + "Flags": 0, + "Name": "Spawn Points", + "Position": "-206.6027,-210.4366,0.00000005960464", + "Enabled": true, + "Children": [ + { + "__guid": "15c44ba2-0e41-4b18-a7fa-6aeeca6b546b", + "Flags": 0, + "Name": "Spawn Point", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} + }, + { + "__guid": "ea77f192-3b42-4d0b-b813-6b759160e87c", + "Flags": 0, + "Name": "Spawn Point", + "Position": "69.43365,-3.252777,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} + }, + { + "__guid": "b328ee26-4504-4864-9706-df2cf726a037", + "Flags": 0, + "Name": "Spawn Point", + "Position": "2.916519,58.33823,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} + }, + { + "__guid": "6cbfc9ab-a520-4683-88f9-e30a460fc421", + "Flags": 0, + "Name": "Spawn Point", + "Position": "67.744,59.85857,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} } ] }, diff --git a/code/MyComponent.cs b/code/MyComponent.cs deleted file mode 100644 index b6e5dca..0000000 --- a/code/MyComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ - -public sealed class MyComponent : Component -{ - [Property] public string StringProperty { get; set; } - - protected override void OnUpdate() - { - } -}