public void stopDialogue() { if (nextChoiceFinal) { if (nextStep != 2851) { GameObject d12 = GameObject.Find("DialogueTrigger 12"); if (d12 != null) { d12.GetComponent <DialogueTrigger>().TriggerDialogue(); } } followPlayer = false; nextChoiceFinal = false; //FindObjectOfType<Player_Movement>().maxSpeed = 0; } if (tdat != null) { followPlayer = true; tdat.arm(); tdat = null; nextChoiceFinal = true; } FaceObjective(); inDialogue = false; }
void OnTriggerEnter2D(Collider2D other) { if (other.transform.GetComponent <ZoomOut>() != null) { tdat = FindObjectOfType <TriggerDialogueAfterTime>(); maxSpeed += 5; } }