Fix character attributes serialization; update data values and adjust serialization attributes for proper functionality

This commit is contained in:
2025-08-02 11:42:16 +02:00
parent 3871cba753
commit af23dcc963
2 changed files with 5 additions and 5 deletions

View File

@@ -7166,7 +7166,7 @@ MonoBehaviour:
Data: 5|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp Data: 5|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp
- Name: Value - Name: Value
Entry: 4 Entry: 4
Data: 1 Data: 5
- Name: - Name:
Entry: 8 Entry: 8
Data: Data:
@@ -7220,7 +7220,7 @@ MonoBehaviour:
Data: 8|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp Data: 8|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp
- Name: Value - Name: Value
Entry: 4 Entry: 4
Data: 5 Data: 1
- Name: - Name:
Entry: 8 Entry: 8
Data: Data:
@@ -7274,7 +7274,7 @@ MonoBehaviour:
Data: 11|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp Data: 11|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp
- Name: Value - Name: Value
Entry: 4 Entry: 4
Data: 1 Data: 2
- Name: - Name:
Entry: 8 Entry: 8
Data: Data:
@@ -7310,7 +7310,7 @@ MonoBehaviour:
Data: 13|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp Data: 13|Data.AttributeData`1[[System.Single, mscorlib]], Assembly-CSharp
- Name: Value - Name: Value
Entry: 4 Entry: 4
Data: 1 Data: 0
- Name: - Name:
Entry: 8 Entry: 8
Data: Data:

View File

@@ -7,7 +7,7 @@ namespace Data
{ {
public class Character : SerializedMonoBehaviour public class Character : SerializedMonoBehaviour
{ {
[OdinSerialize] public CharacterAttributes attributes = new(); [OdinSerialize, NonSerialized] public CharacterAttributes attributes = new();
private void Start() private void Start()
{ {