mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-06-10 22:20:40 +02:00
feat: manage rotation z on level json
This commit is contained in:
@ -84,7 +84,8 @@ public class JSONExporter : MonoBehaviour
|
||||
x = Mathf.Round(pos.x * 100f) / 100f,
|
||||
y = Mathf.Round(pos.y * 100f) / 100f,
|
||||
scaleX = Mathf.Round(scale.x * 100f) / 100f,
|
||||
scaleY = Mathf.Round(scale.y * 100f) / 100f
|
||||
scaleY = Mathf.Round(scale.y * 100f) / 100f,
|
||||
rotationZ = Mathf.Round(go.transform.rotation.eulerAngles.z * 100f) / 100f
|
||||
});
|
||||
}
|
||||
|
||||
@ -139,7 +140,7 @@ public class JSONExporter : MonoBehaviour
|
||||
private class SerializableElement
|
||||
{
|
||||
public string type;
|
||||
public float x, y, scaleX, scaleY;
|
||||
public float x, y, scaleX, scaleY, rotationZ;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
Reference in New Issue
Block a user