Esempio n. 1
0
    private void Initialize()
    {
        mmtc                = GameObject.Find(mainObjName).GetComponent <mainMenuTextColor> ();
        currentColor        = mmtc.currentColor;
        colorChangeTimeStep = mmtc.colorChangeTimeStep;

        button = gameObject.GetComponent <Button> ();
        StartCoroutine(ChangeColorSlow());
    }
    // Use this for initialization
    void Start()
    {
        mmtc                = GameObject.Find("WinTextColored").GetComponent <mainMenuTextColor> ();
        currentColor        = mmtc.currentColor;
        colorChangeTimeStep = mmtc.colorChangeTimeStep;

        image = gameObject.GetComponent <Image> ();
        StartCoroutine(ChangeColorSlow());
    }