Ejemplo n.º 1
0
        public void Init()
        {
            Current  = this;
            HealthUI = GetComponentInChildren <HealthUI>();
            HealthUI.Init();

            ScoreUI = GetComponentInChildren <ScoreUI>();
            ScoreUI.Init();

            DeathsUI = GetComponentInChildren <DeathsUI>();
            DeathsUI.Init();
        }
Ejemplo n.º 2
0
        /// <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();
        }