diff --git a/[CGT] Fungus Slot-based Save System/Assets/Tests/Resources/Prefabs/TestScenes/transformVarTestScene.prefab b/[CGT] Fungus Slot-based Save System/Assets/Tests/Resources/Prefabs/TestScenes/transformVarTestScene.prefab index 5367009..7ce1054 100644 --- a/[CGT] Fungus Slot-based Save System/Assets/Tests/Resources/Prefabs/TestScenes/transformVarTestScene.prefab +++ b/[CGT] Fungus Slot-based Save System/Assets/Tests/Resources/Prefabs/TestScenes/transformVarTestScene.prefab @@ -593,7 +593,7 @@ Transform: m_GameObject: {fileID: 5411302616546669178} m_LocalRotation: {x: 0.50865006, y: -0.49119765, z: 0.49119765, w: 0.50865006} m_LocalPosition: {x: 4.92, y: -1.6199999, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 0.8, y: 0.5, z: 0.3} m_Children: [] m_Father: {fileID: 8918579170331306597} m_RootOrder: 8 diff --git a/[CGT] Fungus Slot-based Save System/Assets/Tests/TransformVarTests.cs b/[CGT] Fungus Slot-based Save System/Assets/Tests/TransformVarTests.cs index b757591..2b7de97 100644 --- a/[CGT] Fungus Slot-based Save System/Assets/Tests/TransformVarTests.cs +++ b/[CGT] Fungus Slot-based Save System/Assets/Tests/TransformVarTests.cs @@ -121,7 +121,8 @@ public IEnumerator TransformVarLoadedCorrectly() && firstObj.transform.rotation == secondObj.transform.rotation; bool secondTwoObjectsSynced = thirdObj.transform.up == fourthObj.transform.up && thirdObj.transform.right == fourthObj.transform.right && - thirdObj.transform.forward == fourthObj.transform.forward; + thirdObj.transform.forward == fourthObj.transform.forward && + thirdObj.transform.localScale == fourthObj.transform.localScale; bool allObjectsSynced = firstTwoObjectsSynced && secondTwoObjectsSynced; // Assert @@ -137,6 +138,7 @@ void ApplyTransformChangesToObjects() thirdObj.transform.up = fourthObj.transform.up; thirdObj.transform.right = fourthObj.transform.right; thirdObj.transform.forward = fourthObj.transform.forward; + thirdObj.transform.localScale = fourthObj.transform.localScale; } [Test] diff --git a/[CGT] Fungus Slot-based Save System/Assets/[CGT] Fungus Slot-based Save System/Scripts/VariableContainerTypes.cs b/[CGT] Fungus Slot-based Save System/Assets/[CGT] Fungus Slot-based Save System/Scripts/VariableContainerTypes.cs index 422dbc7..a26e3f5 100644 --- a/[CGT] Fungus Slot-based Save System/Assets/[CGT] Fungus Slot-based Save System/Scripts/VariableContainerTypes.cs +++ b/[CGT] Fungus Slot-based Save System/Assets/[CGT] Fungus Slot-based Save System/Scripts/VariableContainerTypes.cs @@ -70,16 +70,6 @@ public class Vec2Var: Var {} [System.Serializable] public class Vec3Var: Var {} - /// - /// Generic serializable container for variables that shouldn't be serialized like - /// value variables. - /// - /// - public class ReferenceVar : VarBase - { - - } - [System.Serializable] public class FlowchartVariables {