private void updateFrame() { float x = (Time.time - startTime) / animationTime; Vector3 camPos = master.getCamera().WorldToScreenPoint(point); camPos.y = camPos.y + 25f * x; camPos.z = Mathf.Abs(camPos.z); transform.position = camPos; GetComponent <UnityEngine.UI.Text>().fontSize = (int)(5f + 10f * fontSizeFunction(x)); Color32 c = GetComponent <UnityEngine.UI.Text>().color; float opacity = 255 * fontOpacityFunction(x); c = new Color32(c.r, c.g, c.b, (byte)((int)opacity)); GetComponent <UnityEngine.UI.Text>().color = c; }