using UnityEngine; [System.Serializable] public class SerializationVector { public float x; public float y; public float z; public SerializationVector(float x, float y, float z) { this.x = x; this.y = y; this.z = z; } public Vector3 ToVector() { return new Vector3(x,y,z); } public Quaternion ToQuaternion() { return Quaternion.Euler(x,y,z); } }