From af23dcc963e66a49a285c0ad3b206cd7c4317c4a Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 2 Aug 2025 11:42:16 +0200 Subject: [PATCH] Fix character attributes serialization; update data values and adjust serialization attributes for proper functionality --- Assets/Scenes/main.unity | 8 ++++---- Assets/Scripts/Data/Character.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Scenes/main.unity b/Assets/Scenes/main.unity index e2ea7dd..d7532d6 100644 --- a/Assets/Scenes/main.unity +++ b/Assets/Scenes/main.unity @@ -7166,7 +7166,7 @@ MonoBehaviour: Data: 5|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp - Name: Value Entry: 4 - Data: 1 + Data: 5 - Name: Entry: 8 Data: @@ -7220,7 +7220,7 @@ MonoBehaviour: Data: 8|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp - Name: Value Entry: 4 - Data: 5 + Data: 1 - Name: Entry: 8 Data: @@ -7274,7 +7274,7 @@ MonoBehaviour: Data: 11|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp - Name: Value Entry: 4 - Data: 1 + Data: 2 - Name: Entry: 8 Data: @@ -7310,7 +7310,7 @@ MonoBehaviour: Data: 13|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp - Name: Value Entry: 4 - Data: 1 + Data: 0 - Name: Entry: 8 Data: diff --git a/Assets/Scripts/Data/Character.cs b/Assets/Scripts/Data/Character.cs index 2faffdb..2efece5 100644 --- a/Assets/Scripts/Data/Character.cs +++ b/Assets/Scripts/Data/Character.cs @@ -7,7 +7,7 @@ namespace Data { public class Character : SerializedMonoBehaviour { - [OdinSerialize] public CharacterAttributes attributes = new(); + [OdinSerialize, NonSerialized] public CharacterAttributes attributes = new(); private void Start() {