예제 #1
0
        public void OpenUi(CCUiType ccuitype, bool coexist = false)
        {
            GameObject go = UiParms(ccuitype);

            if (go)
            {
                go.transform.SetAsLastSibling();
                CCUIBase ccuibase = go.GetComponent <CCUIBase>();
                ccuibase.UiAniIeStop();
                ccuibase.Init();
                go.SetActive(true);
                ccuibase.CCUiAni(true);
                if (!coexist)
                {
                    foreach (var old in _oldUi)
                    {
                        CCuiBaseClose(old.Value);
                    }
                    _oldUi.Clear();
                }
            }
            _oldUi.Add((int)ccuitype, go.GetComponent <CCUIBase>());
        }
예제 #2
0
 private void CCuiBaseClose(CCUIBase ccuibase)
 {
     ccuibase.UiAniIeStop();
     ccuibase.Close();
     ccuibase.CCUiAni(false);
 }