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; } }
public void Initialize(IManager manager, string ipcIdentifier) { CurrentPlugin.Initialize(); Events.DropperDroneStateChange.SubscribeAll(DropperDroneStateChange_EventHandler); }