public override void SetupHUD() { HudController hud = HudController.Instance; if (hud != null) { hud.CreateHud(this, this.GetWeaponLookAt()); SetupTargetables(); } }
public static void SetupTargetables() { ShipController human = ShipController.GetHuman(); HudController hud = HudController.Instance; if ((hud != null) && (human != null)) { for (int i = 0; i < ShipController.Ships.Count; i++) { ShipController ship = ShipController.Ships[i]; if (FactionController.Instance.IsHostile(human.Faction, ship.Faction)) { hud.CreateTargetable(ship); } } } }
void Awake() { HudController.Instance = this; }