// Use this for initialization void Start() { talk = keepTalking; //NPC Starts at introduction isTalking = false; //Is not talking at first curLine = 0; playerScript = GameObject.Find("Player").GetComponent <PlayerControl>(); gameScripts = GameObject.Find("GameController").GetComponent <game_scripts>(); aiGraph = GameObject.Find("GameController").GetComponent <NPC_Calc>(); speechGraph = gameObject.GetComponent <SpeechGraph>(); }
// Use this for initialization void Start() { item = -1; gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>(); clueList = GameObject.Find("GameController").GetComponent<clue_list>(); }
// Use this for initialization void Start() { item = -1; gameScripts = GameObject.Find("GameController").GetComponent <game_scripts>(); clueList = GameObject.Find("GameController").GetComponent <clue_list>(); }
// Use this for initialization void Start() { gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>(); }
/// <summary> /// Goes to next node in the graph. /// </summary> public void goToNext() { PCtoNPC temp = GameObject.Find("Player").GetComponent <PCtoNPC>(); //beats quest lose time if (curNode.ToString().Equals("congrat")) { game_scripts gameTemp = GameObject.Find("GameController").GetComponent <game_scripts>(); gameTemp.loseTime(4); } if (curNode.ToString().Equals("end")) { string[] tempArr = { gameObject.name + " is...", "not the killer." }; if (GameObject.Find("GameController").GetComponent <NPC_Calc>().killer.ToString().Equals(gameObject.ToString())) { tempArr[1] = "the killer. Congrats!"; Application.LoadLevel("win"); } GameObject.Find("GameController").GetComponent <game_scripts>().loseLife(); } //special case /* * 0 Quest node * 1 Help node * 2 Busy/Passive * 3 Complain * 4 Congrats */ if (curNode.ToString().Equals("passive")) { int num = 0; if (temp.questing()) { num++; if (temp.getQuestNPC().Equals("Butler")) { num++; } else { num = 2; if (temp.getQuestNPC() == temp.getTalkNPC()) { num++; if (temp.isQuestDone()) { num++; } } } } else if (temp.getTalkNPC().Equals("Butler")) { num = 1; } goToNext(num); } else { goToNext(0); } }
// Use this for initialization void Start() { talk = keepTalking;//NPC Starts at introduction isTalking = false;//Is not talking at first curLine = 0; playerScript = GameObject.Find("Player").GetComponent<PlayerControl>(); gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>(); aiGraph = GameObject.Find("GameController").GetComponent<NPC_Calc>(); speechGraph = gameObject.GetComponent<SpeechGraph>(); }
// Use this for initialization void Start() { gameScripts = GameObject.Find("GameController").GetComponent <game_scripts>(); }
// Use this for initialization void Start() { //get objects and scripts gameController = GameObject.Find("GameController"); gameScripts = gameController.GetComponent<game_scripts>(); currentTime = gameScripts.getStartTime(); updateTime(); }