//スタックの状態を変更する public void changeIfStack(bool proccess) { IfStack s = this.popIfStack(); s.isIfProcess = proccess; this.ifStack.Add(s); }
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); } }