public void Init() { Current = this; HealthUI = GetComponentInChildren <HealthUI>(); HealthUI.Init(); ScoreUI = GetComponentInChildren <ScoreUI>(); ScoreUI.Init(); DeathsUI = GetComponentInChildren <DeathsUI>(); DeathsUI.Init(); }
/// <summary> /// Init UI. /// </summary> public void Init() { Current = this; HealthUI = GetComponentInChildren <HealthUI>(); HealthUI.Init(); ScoreUI = GetComponentInChildren <ScoreUI>(); ScoreUI.Init(); LivesUI = GetComponentInChildren <LivesUI>(); LivesUI.Init(); EndUI = GetComponentInChildren <EndUI>(); EndUI.Init(); }