void Start() { //store temporary variable time in the DateTime Now property time = DateTime.Now; dialogueSource = GameObject.Find ("Dialogue Engine Chapel Object"); externalScript = dialogueSource.GetComponent<dialogueEngineChapel>(); trigSceneF = GameObject.Find("Trigger F"); scriptTrigSceneF = trigSceneF.GetComponent<dialogueTriggerF>(); }
//public float dramaticPause; // Use this for initialization void Awake() { //Ghost initialisation graceJosephGhost = GameObject.Find ("Grace and Joseph"); priestGhost = GameObject.Find ("PriestGhost"); guardGhost = GameObject.Find ("GuardGhost"); graceJosephFadeIn = graceJosephGhost.GetComponent<GraceJosephFadeIn> (); priestFade = priestGhost.GetComponent<PriestFade> (); guardsFadeIn = guardGhost.GetComponent<GuardsFadeIn> (); //initialise scene E trigSceneE = GameObject.Find("Trigger E"); scriptTrigSceneE = trigSceneE.GetComponent<dialogueTriggerE>(); //initialise scene F trigSceneF = GameObject.Find("Trigger F"); scriptTrigSceneF = trigSceneF.GetComponent<dialogueTriggerF>(); //initialise char 11 graceObj = GameObject.Find("Grace"); charElevenSource = graceObj.GetComponent<TBE_3DCore.TBE_Source>(); charElevenLines = graceObj.GetComponent<dialogueSetupGrace>().graceDialogueArray; //initialise char 12 chapelGuardObj = GameObject.Find("Chapel Guard"); charTwelveSource = chapelGuardObj.GetComponent<TBE_3DCore.TBE_Source>(); charTwelveLines = chapelGuardObj.GetComponent<dialogueSetupChapelGuard>().chapelGuardDialogueArray; //initialise char 13 josephObj = GameObject.Find("Joseph"); charThirteenSource = josephObj.GetComponent<TBE_3DCore.TBE_Source>(); charThirteenLines = josephObj.GetComponent<dialogueSetupJoseph>().josephDialogueArray; //initialise char 14 priestObj = GameObject.Find("Priest"); charFourteenSource = priestObj.GetComponent<TBE_3DCore.TBE_Source>(); charFourteenLines = priestObj.GetComponent<dialogueSetupPriest>().priestDialogueArray; //initialise organ object organObj = GameObject.Find("Organ"); organSource = organObj.GetComponent<TBE_3DCore.TBE_Source>(); organLines = organObj.GetComponent<dialogueSetupOrgan>().organArray; //initialise line params lineNumber = 0; linePause = 0.1f; }