public void ShowHeadPopUp(string text) { TextMove instance = Instantiate(headPopUp); instance.transform.SetParent(unitCanvas.transform, false); instance.gameObject.SetActive(true); instance.SetText(text); }
void Start() { canvas = GameObject.Find("Canvas"); _multiplier_text = (TextMove)GameObject.Instantiate(textPrefab [4]); _multiplier_text.transform.SetParent(canvas.transform, false); }
// Use this for initialization private void Awake() { _Trans = this; }