public bool execute() { bool forcewait = false; if (current == null) { current = nodes [0]; } while (!forcewait) { if (current.execute()) { forcewait = true; break; } else { current = current.getChild(); if (current == null) { break; } } } if (!forcewait) { this.current = null; } return(forcewait); }
public void showOptions(ConversationNodeHolder options) { if (options.getNode().getType() == ConversationNodeViewEnum.OPTION) { blur = GameObject.Instantiate(Blur_Prefab); blur.transform.position = new Vector3(Camera.main.transform.position.x, Camera.main.transform.position.y, Camera.main.transform.position.z + 1); this.guioptions = options; this.guistate = guiState.ANSWERS_MENU; } }
public bool execute() { bool forcewait = false; if(current==null) current = nodes [0]; while(!forcewait){ if(current.execute()){ forcewait = true; break; }else{ current = current.getChild(); if(current == null) break; } } if(!forcewait) this.current = null; return forcewait; }
public void showOptions(ConversationNodeHolder options) { if (options.getNode ().getType () == ConversationNodeViewEnum.OPTION) { blur = GameObject.Instantiate (Blur_Prefab); blur.transform.position = new Vector3 (Camera.main.transform.position.x, Camera.main.transform.position.y, Camera.main.transform.position.z + 1); this.guioptions = options; this.guistate = guiState.ANSWERS_MENU; } }