Exemplo n.º 1
0
    void Start()
    {
        Debug.Log("TRIGGER INITIAL");
        DialogueInterface d = FindObjectOfType <DialogueInterface>();

        d.ShowDialogue(Initial.StateLabel);
    }
Exemplo n.º 2
0
    // 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;
    }
Exemplo n.º 3
0
 /// <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;
     }
 }
Exemplo n.º 4
0
 /// <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;
     }
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
    // 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;
    }
Exemplo n.º 7
0
    // 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);
    }
Exemplo n.º 8
0
    /// <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);
         }
     }
 }
Exemplo n.º 10
0
 private void Start()
 {
     playerStats = GameObject.FindWithTag("Player").GetComponent <Statkeeper>();
     dialogue    = GetComponent <DialogueInterface>();
 }
Exemplo n.º 11
0
 private void Start()
 {
     dialogue = GetComponent <DialogueInterface>();
 }
 private void Start()
 {
     _dialogue = FindObjectOfType <DialogueInterface>();
 }
Exemplo n.º 13
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DialogueManager_v2()
 {
     this.dialogueBox     = null;
     this.hintBox         = null;
     this.cutsceneGraphic = null;
 }
Exemplo n.º 14
0
 private void Start()
 {
     _dint  = FindObjectOfType <DialogueInterface>();
     _label = FindObjectOfType <AssistantLabel>();
     _logic = FindObjectOfType <MetaLogic>();
 }
 void Start()
 {
     _player    = GetComponent <Rigidbody>();
     _interface = FindObjectOfType <DialogueInterface>();
     _mouse     = Input.mousePosition;
 }