// Update is called once per frame void Update() { if (dialogueText) { dialogueText.transform.position = Camera.main.WorldToScreenPoint(transform.position) + new Vector3(0, 100 * (float)Screen.height / (float)768); } state.DoState(); }