public void Awake() { _eventSystem = GetComponentInChildren <EventSystem>(); _hud = Instantiate(_interfaceData.HudPrefab, parent: transform); _hud.gameObject.SetActive(false); _gameOver = Instantiate(_interfaceData.GameOverPrefab, parent: transform); _gameOver.gameObject.SetActive(false); }
public SceneGameOver() { Background = new Background(BackgroundType.DarkPurple); GUI = new GameOverInterface(); }
private void Awake() { _gameOverInterface = this; }