Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        GameScript gameScript = GameObject.FindWithTag("GameController").GetComponent <GameScript> ();
        Animations animator   = gameObject.AddComponent <Animations> ();

        StartCoroutine(animator.BlinkAnimation(gameObject, gameScript.getPrimaryMaterial(), gameScript.getSecondaryMaterial()));
    }