Пример #1
0
 public HoverEngine(SerializationInfo info, StreamingContext context)
 {
     ItemPool.LoadAsset <HoverEngineConfig>(info.GetValue(nameof(Config), ""), a => Config = a);
     Drag = Config.DriveForce / Config.MaxForwardSpeed;
     RefreshPid();
 }
Пример #2
0
 public HoverEngine(HoverEngineConfig config)
 {
     Config = config;
     Drag   = Config.DriveForce / Config.MaxForwardSpeed;
     RefreshPid();
 }