public HoverEngine(SerializationInfo info, StreamingContext context) { ItemPool.LoadAsset <HoverEngineConfig>(info.GetValue(nameof(Config), ""), a => Config = a); Drag = Config.DriveForce / Config.MaxForwardSpeed; RefreshPid(); }
public HoverEngine(HoverEngineConfig config) { Config = config; Drag = Config.DriveForce / Config.MaxForwardSpeed; RefreshPid(); }