public virtual void UnreserveCarryable(Actor self) { if (Carryable != null && Carryable.IsInWorld && !Carryable.IsDead) Carryable.Trait<Carryable>().UnReserve(Carryable); Carryable = null; State = CarryallState.Idle; }
public Carryall(Actor self,CarryallInfo info) { Info = info; Carryable = null; State = CarryallState.Idle; aircraftInfo = self.Info.TraitInfoOrDefault<AircraftInfo>(); body = self.Trait<BodyOrientation>(); move = self.Trait<IMove>(); facing = self.Trait<IFacing>(); }