public FlightControl(FlightControlConfig config) { Config = config; EnginesActivated = true; CurrentMode = config.DefaultMode; ClearValues(); }
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(); }
public CosmeticFlightBanking(SerializationInfo info, StreamingContext context) { _bankTransform = info.GetValue(nameof(_bankTransform), _bankTransform); ItemPool.LoadAsset <FlightControlConfig>(info.GetValue(nameof(Config), ""), a => Config = a); }
public CosmeticFlightBanking(Transform bankTransform, FlightControlConfig config) { _bankTransform = new CachedTransform(bankTransform); Config = config; }