Exemple #1
0
        /// <summary>
        /// Initializes the object.
        /// </summary>
        public void Init()
        {
            // Makes this the current UI which can be accessed by any class
            Current = this;

            HealthUI = GetComponentInChildren <HealthUI>();
            HealthUI.Init();
        }
Exemple #2
0
        public void Init()
        {
            Current  = this;
            HealthUI = GetComponentInChildren <HealthUI>();
            HealthUI.Init();

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

            DeathsUI = GetComponentInChildren <DeathsUI>();
            DeathsUI.Init();
        }
Exemple #3
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();
        }
Exemple #4
0
 public void Init()
 {
     Current  = this;
     HealthUI = GetComponentInChildren <HealthUI>();
     HealthUI.Init();
 }