// Use this for initialization void Start() { tier1 = GameObject.Find ("CastPoint").GetComponent<TextControlScript> (); tier2 = GameObject.Find ("CastPoint").GetComponent<TextControlScript> (); tier3 = GameObject.Find ("CastPoint").GetComponent<TextControlScript> (); //tier1.spellTier1 = false; //tier2.spellTier1 = false; //tier3.spellTier1 = false; }
// Use this for initialization void Start() { tier1 = GameObject.Find("CastPoint").GetComponent <TextControlScript> (); tier2 = GameObject.Find("CastPoint").GetComponent <TextControlScript> (); tier3 = GameObject.Find("CastPoint").GetComponent <TextControlScript> (); //tier1.spellTier1 = false; //tier2.spellTier1 = false; //tier3.spellTier1 = false; }
// Update is called once per frame void Update() { timer -= Time.deltaTime; if (timer <= 0) Destroy(gameObject); castPoint = (TextControlScript)FindObjectOfType(typeof(TextControlScript)); transform.position = castPoint.gameObject.transform.position; }
// Update is called once per frame void Update() { timer -= Time.deltaTime; if (timer <= 0) { Destroy(gameObject); } castPoint = (TextControlScript)FindObjectOfType(typeof(TextControlScript)); transform.position = castPoint.gameObject.transform.position; }