private IEnumerator StartDialogTurn(GameObject gameObject) { DialogTrigger dTrigger = gameObject.GetComponent <DialogTrigger>(); cameraControl.MoveCamera(gameObject.transform.position); return(dTrigger.TriggerDialog()); }
private void Update() { if (playerInRange) { if (canInteract) { HandleInteractivesUI(); } _canDesactivate = true; if (Input.GetButtonDown("Fire2")) { if (dialogTrigger.ReturnState() == DialogState.unactive) { dialogTrigger.TriggerDialog(); } else if (dialogTrigger.ReturnState() == DialogState.active && dialogTrigger.dialog.isTyped != true) { dialogTrigger.DisplayNextSentence(); } } } else { if (dialogTrigger.ReturnState() == DialogState.active && _canDesactivate) { dialogTrigger.EndDialog(); } _canDesactivate = false; } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.TryGetComponent <Boat>(out Boat boat)) { Stop(); _trigger.TriggerDialog(); } }
// Start is called before the first frame update void Start() { dialogTrigger = GetComponent <DialogTrigger>(); dialog = new Dialog { Name = "JICE" }; dialog.Sentences = new Queue(); dialog.Sentences.Enqueue("GreatJob"); dialogTrigger.TriggerDialog(dialog); }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { if (_dialogTrigger) { _dialogTrigger.TriggerDialog(); } } }
private void OnMouseDown() { if (onStopPoint == true && DataHolder.currentClientComplete == false && alreadySelected == false) { //FindObjectOfType<Sound>().ButtonSound(); Debug.Log("Order price: " + GetComponent <Order>().GetPrice()); //Destroy(onStopIcon); Destroy(outline); dialogTrigger.TriggerDialog(); alreadySelected = true; //DataHolder.currentClientComplete = true; //dialogController.initDialog(); } }
// Update is called once per frame void Update() { if (_dt.activeOnEnter) { _dt.SetActiveOnEnterFalse(); } if (_inOnTrigger) { if (Input.GetKeyDown(KeyCode.E) && _initialDialog) { _dt.TriggerDialog(); _eKey.EtoInteractIsActive(false); _initialDialog = false; } } }
// Update is called once per frame private void Update() { if (Vector3.Distance(PlayerManager.instance.Player.transform.position, transform.position) <= 2) { talktableTrigger.Play(); if (Input.GetKeyDown(KeyCode.E)) { OnDialogueFinished += CallbackOpenDoor; dialogueTrigger.TriggerDialog(OnDialogueFinished); } } else { if (talktableTrigger.IsTrigger()) { talktableTrigger.Stop(); } } }
void EnableDialog(Collider2D coll) { //Invoke("_HideAlert", 5); Show(); trigger.TriggerDialog(coll); }
void startTalking() { beganDialog = true; dialogPanel.SetActive(true); dialogTrigger.TriggerDialog(); }
public void TriggerCrushDialog() => _dt.TriggerDialog();
public void StartGammieDialogue() => _dt.TriggerDialog();
public void StartHintDialog() => _dt.TriggerDialog();
void OnEnable() { trigger.TriggerDialog(); }
public void startTalking() { dialogPanel.SetActive(true); dialogTrigger.TriggerDialog(); }