public static HealthUIConfigurationGameObject Get() { if (Instance == null) { Instance = GameObject.FindObjectOfType <HealthUIConfigurationGameObject>(); } return(Instance); }
public HealthUIManager() { Debug.Log("HealthUIManager"); this.HealthUIInstanciated = GameObject.Instantiate(HealthUIConfigurationGameObject.Get().HealthUIConfiguration.HealthUIPrefab, CoreGameSingletonInstances.GameCanvas.transform); this.healthUiFullBarType = HealthUIInstanciated.GetComponentInChildren <HealthUIFullBarType>(); }