예제 #1
0
        public UIbase setActiveUI(UIType type)
        {
            UIbase ui = null;

            foreach (UIType layer in uiMap.Keys)
            {
                if (layer == type)
                {
                    uiMap[layer].uiModel.gameObject.SetActive(true);
                    uiMap[layer].state = true;
                    ui = uiMap[layer].uiModel;
                }
                else
                {
                    uiMap[layer].uiModel.gameObject.SetActive(false);
                    uiMap[layer].state = false;
                }
            }
            this.currentUIType = type;
            initUIGroup(type);
            return(ui);
        }
예제 #2
0
 private void Start()
 {
     UIbase.ShowPage <HeadUI>();
     UIbase.ShowPage <OperateUI>();
 }
예제 #3
0
    private void Awake()
    {
        UIbase tmpBase = GetComponentInParent <UIbase>();

        UImanager.Insita.Registered(tmpBase.name, this.name, this.gameObject);
    }
예제 #4
0
 public UILayer(UIbase ui)
 {
     this.uiModel = ui;
 }