Exemplo n.º 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>();
    }
Exemplo n.º 2
0
 void OnDestroy()
 {
     mInstance = null;
 }
Exemplo n.º 3
0
 void Awake()
 {
     mInstance = this;
 }
Exemplo n.º 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>();
    }