Skip to content

Commit

Permalink
Updated Unit Tests to test Local Scale Retention
Browse files Browse the repository at this point in the history
  • Loading branch information
CG-Tespy committed Feb 29, 2020
1 parent a756946 commit 720321a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ public class Vec2Var: Var<Vector2> {}
[System.Serializable]
public class Vec3Var: Var<Vector3> {}

/// <summary>
/// Generic serializable container for variables that shouldn't be serialized like
/// value variables.
/// </summary>
/// <typeparam name="T"></typeparam>
public class ReferenceVar<T> : VarBase
{

}

[System.Serializable]
public class FlowchartVariables
{
Expand Down

0 comments on commit 720321a

Please sign in to comment.