public static JsonObject serialize(RotationFeature feature) { JsonObject obj = new JsonObject(JsonObject.JsonType.OBJECT); obj["value"] = feature.value; return(obj); }
public override ParticleFeature create(JsonObject initData) { float val = 0f; if (initData["value"] != null) { val = (float)initData["value"]; } RotationFeature lf = new RotationFeature(val); return(lf); }