Example #1
0
    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>();
    }
Example #2
0
 void OnDestroy()
 {
     mInstance = null;
 }
Example #3
0
 void Awake()
 {
     mInstance = this;
 }
Example #4
0
    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>();
    }