예제 #1
0
        private void DropperDroneStateChange_EventHandler(GameObject sender, Events.DropperDroneStateChange.Data data)
        {
            switch (data.state_)
            {
            case VirusDropperDroneLogic.State.Chase:
                Spectrum.Interop.Game.Vehicle.LocalVehicle.HUD.SetHUDText(CurrentPlugin.TryGetValue("WarningMessage", "WARNING: DRONE CHASING !"));
                break;

            case VirusDropperDroneLogic.State.StompWarning:
                Spectrum.Interop.Game.Vehicle.LocalVehicle.HUD.SetHUDText(CurrentPlugin.TryGetValue("AvoidMessage", "AVOID !"));
                break;
            }
        }
예제 #2
0
 public void Initialize(IManager manager, string ipcIdentifier)
 {
     CurrentPlugin.Initialize();
     Events.DropperDroneStateChange.SubscribeAll(DropperDroneStateChange_EventHandler);
 }