Inheritance: MonoBehaviour
    // 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;
    }
Exemple #2
0
    // 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;
    }
Exemple #4
0
    // 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;
    }