void Start() { Debug.Log("TRIGGER INITIAL"); DialogueInterface d = FindObjectOfType <DialogueInterface>(); d.ShowDialogue(Initial.StateLabel); }
// Use this for initialization void Start() { agent = this.GetComponent <NavMeshAgent>(); agent.updateRotation = false; time = Time.timeSinceLevelLoad; if (Math.Abs(timeTillResearch) < 0.1) { timeTillResearch = 3f; } if (Math.Abs(movementLength) < 0.1) { movementLength = 32f; } door = GameObject.FindGameObjectWithTag("Door").transform; SearchTarget(); dialogue = GetComponent <DialogueInterface>(); entry = GameObject.FindGameObjectWithTag("Nav Entry").transform; agent.destination = entry.transform.position; time = Time.timeSinceLevelLoad + 2f; }
/// <summary> /// Used by a dialogue type dialogue box object to unregister itself from the manager. /// </summary> /// <param name="box"></param> public void UnregisterDialogueBox(DialogueInterface box) { if (this.dialogueBox == box) { this.dialogueBox = null; } }
/// <summary> /// Used by a hint type dialogue box object to unregister itself from the manager. /// </summary> /// <param name="box"></param> public void UnregisterHintBox(DialogueInterface box) { if (this.hintBox == box) { this.hintBox = null; } }
public GUITextManager(DialogueInterface parent) { this.parent = parent; _finalText = ""; parent.interval = 0.5f; parent.cursorChar = "|"; parent.charsPerFrame = 2; parent.typeInterval = 1.4f; parent.timeStampType = Time.time; parent.timeStampBlink = Time.time; }
// Use this for initialization void Start() { _dialogue = FindObjectOfType <DialogueInterface>(); _assistant = GetComponent <Text>(); _alpha = 0.0f; Color c = _assistant.color; c.a = 0.0f; _assistant.color = c; }
// Use this for initialization void Start() { dialogue = GetComponent <DialogueInterface>(); dialogue.baseCanvas = GameObject.FindGameObjectWithTag("Base UI"); dialogue.dialogueField = GameObject.FindGameObjectWithTag("Dialogue Text"); int select = Random.Range(0, dialogueNames.Count); var saveName = dialogueNames[select]; dialogue.ResetCompletely(saveName); Debug.Log("INTERFACE SHOULD LOAD: " + saveName); }
/// <summary> /// Function used by dialogue box objects in the scene to register themselves to the manager. /// </summary> /// <param name="type">Dialogue Box Type</param> /// <param name="box">Dialogue Box object</param> public void Register(DialogueType type, DialogueInterface box) { switch (type) { case DialogueType.DIALOGUE: this.dialogueBox = box; break; case DialogueType.HINT: this.hintBox = box; break; } }
private void Start() { _label = FindObjectOfType <AssistantLabel>(); _dint = GetComponent <DialogueInterface>(); _db = GetComponent <Database>(); _triggers = new Dictionary <TriggerDialogue, GameObject>(); GameObject[] gos = GameObject.FindGameObjectsWithTag("DialogueTriggerTag"); foreach (GameObject go in gos) { TriggerDialogue diag = go.GetComponent <TriggerDialogue>(); if (diag != null) { _triggers.Add(diag, go); } } }
private void Start() { playerStats = GameObject.FindWithTag("Player").GetComponent <Statkeeper>(); dialogue = GetComponent <DialogueInterface>(); }
private void Start() { dialogue = GetComponent <DialogueInterface>(); }
private void Start() { _dialogue = FindObjectOfType <DialogueInterface>(); }
/// <summary> /// Constructor /// </summary> public DialogueManager_v2() { this.dialogueBox = null; this.hintBox = null; this.cutsceneGraphic = null; }
private void Start() { _dint = FindObjectOfType <DialogueInterface>(); _label = FindObjectOfType <AssistantLabel>(); _logic = FindObjectOfType <MetaLogic>(); }
void Start() { _player = GetComponent <Rigidbody>(); _interface = FindObjectOfType <DialogueInterface>(); _mouse = Input.mousePosition; }