Beispiel #1
0
        //スタックの状態を変更する
        public void changeIfStack(bool proccess)
        {
            IfStack s = this.popIfStack();

            s.isIfProcess = proccess;
            this.ifStack.Add(s);
        }
Beispiel #2
0
        public IfStack popIfStack()
        {
            try{
                IfStack c = this.ifStack[this.ifStack.Count - 1];
                this.ifStack.RemoveAt(this.ifStack.Count - 1);

                return(c);
            }catch (System.Exception e) {
                Debug.Log(e.ToString());
                NovelSingleton.GameManager.showError("スタックが不足しています。ifとendifの関係を確認して下さい");
                return(null);
            }
        }