// Start is called before the first frame update void Start() { time = 0; foreach (Transform child in this.transform) { _tmp = child.gameObject.GetComponent <TMPAnimation>(); } }
// Start is called before the first frame update void Start() { text = GetComponent <TextMeshProUGUI>(); // Quaternion rot = text.rectTransform.rotation; // Vector3 pos = text.rectTransform.position; // pos.y -= 3.0f; // rot.z = -1; // rot.x = 0; // rot.y = 0; // text.rectTransform.rotation = rot; // text.rectTransform.position = pos; // once = true; // cnt = 0; // action =new TMPAnimation(); action = GetComponent <TMPAnimation>(); action.i = i; action.text = text; }