示例#1
0
        public void LoadingIn(UIImplements implements, List <UIBaseLayer> addingList, Action <UIBase> addFront)
        {
            if (m_LoadingBaseLayer != null)
            {
                return;
            }

            if (implements.LoadingCreator == null)
            {
                return;
            }

            UILoading loading = implements.LoadingCreator.Create();

            addFront.Invoke(loading);
            m_LoadingBaseLayer = addingList.Find(layer => layer.Base == loading);
        }
示例#2
0
        public void FadeIn(UIImplements implements, List <UIBaseLayer> addingList, Action <UIBase> addFront)
        {
            if (m_FadeBaseLayer != null)
            {
                return;
            }

            if (implements.FadeCreator == null)
            {
                return;
            }

            UIFade fade = implements.FadeCreator.Create();

            addFront.Invoke(fade);
            m_FadeBaseLayer = addingList.Find(layer => layer.Base == fade);
        }
示例#3
0
        public void ToastIn(UIImplements implements, List <UIBaseLayer> addingList, Action <UIBase> addFront,
                            string message)
        {
            if (m_ToastBaseLayer != null)
            {
                return;
            }

            if (implements.ToastCreator == null)
            {
                return;
            }

            UIToast toast = implements.ToastCreator.Create(message);

            addFront.Invoke(toast);
            m_ToastBaseLayer = addingList.Find(layer => layer.Base == toast);
        }
示例#4
0
 public UIController(UIImplements implements)
 {
     m_Implements = implements;
 }