From ebbb6bd25abed9365f06b3795e6fdb8aba2a8d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Buratto?= <46575243+joaoburatto@users.noreply.github.com> Date: Sat, 4 Mar 2023 23:23:56 -0300 Subject: [PATCH] Update Unity version and fix errors (#1071) --- .../SS3D/Core/ApplicationStateSystem.cs | 2 +- .../Interactions/ClientDelayedInteraction.cs | 2 +- .../Scripts/SS3D/Interactions/LoadingBar.cs | 2 +- .../Interactions/UI/InteractionMenuView.cs | 4 +- .../SS3D/Systems/Entities/EntitySystem.cs | 2 +- .../SS3D/Systems/Gamemodes/Modes/Gamemode.cs | 2 +- .../UI/GamemodeObjectivePanelView.cs | 2 +- .../SS3D/Systems/Health/HealthController.cs | 4 +- Assets/Scripts/SS3D/Systems/Input/Controls.cs | 8 +-- .../SS3D/Systems/Inventory/UI/ContainerUi.cs | 2 +- .../Systems/Inventory/UI/InventoryView.cs | 2 +- .../SS3D/Systems/Inventory/UI/ItemGrid.cs | 2 +- .../SS3D/Systems/Inventory/UI/ItemGridItem.cs | 2 +- .../Lobby/UI/PlayerUsernameListView.cs | 4 +- .../Systems/Permissions/DisableIfNotAdmin.cs | 2 +- .../Tile/TileMapCreator/GhostManager.cs | 10 ++-- .../Tile/TileMapCreator/TileMapCreator.cs | 4 +- Packages/manifest.json | 14 +++--- Packages/packages-lock.json | 50 +++++++++---------- ProjectSettings/PackageManagerSettings.asset | 30 +++++------ .../LintingSettings.asset | 31 ++++++++++++ ProjectSettings/ProjectVersion.txt | 4 +- 22 files changed, 105 insertions(+), 80 deletions(-) create mode 100644 ProjectSettings/Packages/com.coimbrastudios.core/LintingSettings.asset diff --git a/Assets/Scripts/SS3D/Core/ApplicationStateSystem.cs b/Assets/Scripts/SS3D/Core/ApplicationStateSystem.cs index 0c5f79da4b..988a8782d6 100644 --- a/Assets/Scripts/SS3D/Core/ApplicationStateSystem.cs +++ b/Assets/Scripts/SS3D/Core/ApplicationStateSystem.cs @@ -69,7 +69,7 @@ private void InitializeDiscordIntegration() } else { - FindObjectOfType().Destroy(); + Destroy(FindObjectOfType()); } } diff --git a/Assets/Scripts/SS3D/Interactions/ClientDelayedInteraction.cs b/Assets/Scripts/SS3D/Interactions/ClientDelayedInteraction.cs index 5b741a792b..5cc1d66f2f 100644 --- a/Assets/Scripts/SS3D/Interactions/ClientDelayedInteraction.cs +++ b/Assets/Scripts/SS3D/Interactions/ClientDelayedInteraction.cs @@ -56,7 +56,7 @@ public bool ClientUpdate(InteractionEvent interactionEvent) /// public void ClientCancel(InteractionEvent interactionEvent) { - _loadingBarInstance.Destroy(); + _loadingBarInstance.Dispose(true); } } } \ No newline at end of file diff --git a/Assets/Scripts/SS3D/Interactions/LoadingBar.cs b/Assets/Scripts/SS3D/Interactions/LoadingBar.cs index 3e274f8ea5..1521e34f6f 100644 --- a/Assets/Scripts/SS3D/Interactions/LoadingBar.cs +++ b/Assets/Scripts/SS3D/Interactions/LoadingBar.cs @@ -44,7 +44,7 @@ private void UpdateLoadingProgressTask() { if (StartTime + Duration < Time.time) { - GameObjectCache.Destroy(); + GameObjectCache.Dispose(true); return; } diff --git a/Assets/Scripts/SS3D/Interactions/UI/InteractionMenuView.cs b/Assets/Scripts/SS3D/Interactions/UI/InteractionMenuView.cs index ef63f60908..0ad4bc555b 100644 --- a/Assets/Scripts/SS3D/Interactions/UI/InteractionMenuView.cs +++ b/Assets/Scripts/SS3D/Interactions/UI/InteractionMenuView.cs @@ -68,7 +68,7 @@ private void Update() if (!hasSelfAsParent) { - gameObject.Destroy(); + gameObject.Dispose(true); } } @@ -92,7 +92,7 @@ private void UpdateInteractions() button.GetComponentInChildren().text = interaction.GetName(Event); button.GetComponent