Пример #1
0
        private void ChangeState(AbstractCanvasBehavior canvas)
        {
            _innerState = IckipediaState.Off;

            if (canvas is RootCanvas)
            {
                _innerState = IckipediaState.Root;
            }

            if (canvas is SecondFolderCanvas)
            {
                _innerState = IckipediaState.Second;
            }

            if (canvas is ThirdFolderCanvas)
            {
                _innerState = IckipediaState.Third;
            }

            //print("Current state: " + _innerState);
        }
Пример #2
0
        private void SetActiveCanvas(AbstractCanvasBehavior canvas)
        {
            foreach (var canv in _canvasArray)
            {
                if (canvas != null && canv.Equals(canvas))
                {
                    canv.gameObject.SetActive(true);
                }
                else
                {
                    canv.gameObject.SetActive(false);
                    CleanCanvasData(canv);
                }
            }

            ChangeState(canvas);
        }
Пример #3
0
 private void LoadCanvasData(AbstractCanvasBehavior canvas, string startStr)
 {
     canvas.Load(startStr);
 }
Пример #4
0
 private void CleanCanvasData(AbstractCanvasBehavior canv)
 {
     canv.Clean();
 }