コード例 #1
0
 void CanvasSetState(UICanvasBase obj, bool active)
 {
     if (active)
     {
         obj.ChengeUIState(UICanvasBase.UISTATE.ACTIVE);
     }
     else
     {
         obj.ChengeUIState(UICanvasBase.UISTATE.CLOSE);
     }
 }
コード例 #2
0
        public override void AddCanvas(UICanvasBase target)
        {
            if (_openCanvasHirtory.Count > 0)
            {
                var head = _openCanvasHirtory.Peek();
                head.ChengeUIState(UICanvasBase.UISTATE.SLEEP);
            }

            target.gameObject.SetActive(true);
            _openCanvasHirtory.Push(target);
            target.ChengeUIState(UICanvasBase.UISTATE.ACTIVE);
        }