void Awake() { mInstance = this; //setup data and deactivate object for (int i = 0; i < uis.Length; i++) { UIData uid = uis[i]; UIController ui = uid.ui; if (ui != null) { ui.gameObject.SetActiveRecursively(false); } uid.type = (Modal)i; //System.Enum.Parse(typeof(Modal), uid.name); } mHUD = GetComponentInChildren <HUDInterface>(); }
void OnDestroy() { mInstance = null; }
void Awake() { mInstance = this; }
void Awake() { mInstance = this; //setup data and deactivate object for(int i = 0; i < uis.Length; i++) { UIData uid = uis[i]; UIController ui = uid.ui; if(ui != null) { ui.gameObject.SetActiveRecursively(false); } uid.type = (Modal)i;//System.Enum.Parse(typeof(Modal), uid.name); } mHUD = GetComponentInChildren<HUDInterface>(); }