Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (attComp.getCooldown1Active())
        {
            skill1Icon.SetActive(false);
            skill1IconTrans.enabled = true;
            //skill1Icon.color = new Color32(0, 0, 0,(byte)190);
            cooldown1Txt.text = System.String.Format("{0:0.0}", cooldown1);      // "123.46"
            cooldown1        -= Time.deltaTime;
        }


        if (attComp.getCooldown2Active())
        {
            skill2Icon.SetActive(false);
            skill2IconTrans.enabled = true;
            //skill1Icon.color = new Color32(0, 0, 0,(byte)190);
            cooldown2Txt.text = System.String.Format("{0:0.0}", cooldown2);      // "123.46"
            cooldown2        -= Time.deltaTime;
        }
    }