Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public void SetEvent(MSBBB.Event.MapOffset evt)
 {
     setBaseEvent(evt);
     Position = new Vector3(evt.Position.X, evt.Position.Y, evt.Position.Z);
     Degree   = evt.Degree;
 }