public override MSBBB.Event Serialize(GameObject parent) { var evt = new MSBBB.Event.MapOffset(parent.name); _Serialize(evt, parent); evt.Position = new System.Numerics.Vector3(Position.x, Position.y, Position.z); evt.Degree = Degree; return(evt); }
public void SetEvent(MSBBB.Event.MapOffset evt) { setBaseEvent(evt); Position = new Vector3(evt.Position.X, evt.Position.Y, evt.Position.Z); Degree = evt.Degree; }