Example #1
0
 public static void Finally()
 {
     if (CarrierBlip.Exists())
     {
         CarrierBlip.Delete();
     }
     if (AirportBlip.Exists())
     {
         AirportBlip.Delete();
     }
     if (ProcessFiber.IsAlive)
     {
         ProcessFiber.Abort();
     }
     AircraftSelectorMenu = null;
     CarrierMenu          = null;
     IsActive             = false;
 }
Example #2
0
        private static void Process()
        {
            ProcessFiber = GameFiber.StartNew(delegate {
                while (true)
                {
                    if (AirportBlip.Exists() && ZoneActivationCheck(AirportBlip, 5f, "Hit ~INPUT_CONTEXT~ to open the Plane Manager menu."))
                    {
                        AircraftSelectorMenu.OpenMenu();
                    }

                    if (CarrierBlip.Exists() && ZoneActivationCheck(CarrierBlip, 5f, "Hit ~INPUT_CONTEXT~ to open the Carrier menu."))
                    {
                        CarrierMenu.OpenMenu();
                    }

                    AircraftSelectorMenu.Process();
                    CarrierMenu.Process();
                    GameFiber.Yield();
                }
            });
        }