public void Show <T>(HudDisplayUpdate <T> update) where T : IHudDisplayData { switch (update.HudDisplay) { case HudDisplay.Finance: financeDisplayController.Show(update.Data as FinanceDisplayData); break; default: throw new ArgumentOutOfRangeException(); } }
public void UpdateHud <T>(HudDisplayUpdate <T> update) where T : IHudDisplayData { hudLayerController.Show(update); }