Example #1
0
        public static HealthUIConfigurationGameObject Get()
        {
            if (Instance == null)
            {
                Instance = GameObject.FindObjectOfType <HealthUIConfigurationGameObject>();
            }

            return(Instance);
        }
Example #2
0
 public HealthUIManager()
 {
     Debug.Log("HealthUIManager");
     this.HealthUIInstanciated = GameObject.Instantiate(HealthUIConfigurationGameObject.Get().HealthUIConfiguration.HealthUIPrefab, CoreGameSingletonInstances.GameCanvas.transform);
     this.healthUiFullBarType  = HealthUIInstanciated.GetComponentInChildren <HealthUIFullBarType>();
 }