示例#1
0
文件: UIBase.cs 项目: Farl/SSCore2017
 public void ShelfClosed(QuickShelf shelf)
 {
     if (shelf)
     {
         destroyCount--;
         if (destroyCount <= 0)
         {
             Closed();
         }
     }
 }
示例#2
0
文件: UIBase.cs 项目: Farl/SSCore2017
        private void OutTransition()
        {
            destroyCount = 0;
            for (int i = 0; i < transform.childCount; i++)
            {
                Transform trans = transform.GetChild(i);
                if (trans)
                {
                    QuickShelf comp = trans.GetOrAddComponent <QuickShelf>();
                    comp.Out(this);
                    destroyCount++;
                }
            }

            EventMessage em = new EventMessage(outSound, _paramBool: true);

            EventManager.Broadcast(em);

            if (destroyCount <= 0)
            {
                Closed();
            }
        }
示例#3
0
文件: UIBase.cs 项目: Farl/SSCore2017
        private void InTransition()
        {
            active = true;

            if (blocker)
            {
                blocker.Lock();
            }

            for (int i = 0; i < transform.childCount; i++)
            {
                Transform trans = transform.GetChild(i);
                if (trans)
                {
                    QuickShelf comp = trans.GetOrAddComponent <QuickShelf>();
                    comp.Init();
                    comp.In();
                }
            }

            EventMessage em = new EventMessage(inSound, _paramBool: true);

            EventManager.Broadcast(em);
        }