예제 #1
0
        void UnReserve(Actor self)
        {
            if (reservedForAircraft != null)
            {
                if (reservedForAircraft.GetActorBelow() == self)
                {
                    if (rallyPoint != null)
                    {
                        reservedFor.QueueActivity(reservedForAircraft.MoveTo(rallyPoint.Location, null, targetLineColor: Color.Green));
                    }
                    else
                    {
                        reservedFor.QueueActivity(new TakeOff(reservedFor));
                    }
                }

                reservedForAircraft.UnReserve();
            }
        }
예제 #2
0
        void UnReserve(Actor self)
        {
            if (reservedForAircraft != null)
            {
                if (reservedForAircraft.GetActorBelow() == self)
                {
                    if (rallyPoint != null && rallyPoint.Path.Count > 0)
                    {
                        foreach (var cell in rallyPoint.Path)
                        {
                            reservedFor.QueueActivity(reservedForAircraft.MoveTo(cell, 1, targetLineColor: Color.Green));
                        }
                    }
                    else
                    {
                        reservedFor.QueueActivity(new TakeOff(reservedFor));
                    }
                }

                reservedForAircraft.UnReserve();
            }
        }