Beispiel #1
0
        public virtual void UnreserveCarryable(Actor self)
        {
            if (Carryable != null && Carryable.IsInWorld && !Carryable.IsDead)
                Carryable.Trait<Carryable>().UnReserve(Carryable);

            Carryable = null;
            State = CarryallState.Idle;
        }
Beispiel #2
0
        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>();
        }