public Carryall(Actor self, CarryallInfo info) { this.self = self; this.info = info; IsBusy = false; IsCarrying = false; carryHeight = self.Trait <Helicopter>().Info.LandAltitude; }
public Carryall(Actor self, CarryallInfo info) { this.self = self; this.info = info; IsBusy = false; IsCarrying = false; var helicopter = self.Info.TraitInfoOrDefault <AircraftInfo>(); carryHeight = helicopter != null ? helicopter.LandAltitude : WDist.Zero; }