Ejemplo n.º 1
0
 public FlightControl(FlightControlConfig config)
 {
     Config           = config;
     EnginesActivated = true;
     CurrentMode      = config.DefaultMode;
     ClearValues();
 }
Ejemplo n.º 2
0
 public FlightControl(SerializationInfo info, StreamingContext context)
 {
     Config           = ItemPool.LoadAsset <FlightControlConfig>(info.GetValue(nameof(Config), ""));
     CurrentMode      = info.GetValue(nameof(CurrentMode), CurrentMode);
     EnginesActivated = info.GetValue(nameof(EnginesActivated), EnginesActivated);
     ClearValues();
 }
Ejemplo n.º 3
0
 public CosmeticFlightBanking(SerializationInfo info, StreamingContext context)
 {
     _bankTransform = info.GetValue(nameof(_bankTransform), _bankTransform);
     ItemPool.LoadAsset <FlightControlConfig>(info.GetValue(nameof(Config), ""), a => Config = a);
 }
Ejemplo n.º 4
0
 public CosmeticFlightBanking(Transform bankTransform, FlightControlConfig config)
 {
     _bankTransform = new CachedTransform(bankTransform);
     Config         = config;
 }