Пример #1
0
    IEnumerator Attack()
    {
        yield return(new WaitForSeconds(2.5f));

        ClawObj.SetActive(true);
        CardCover.SetActive(true);
        Claw.fillOrigin = 1;
        for (int i = 0; i <= 10; i++)
        {
            Claw.fillAmount = i * 0.1f;
            yield return(new WaitForSeconds(0.002f));

            if (i == 4)
            {
                RedObj.SetActive(true);
                CDS.CardAttack();
                PlaySoundA(22);
            }
        }
        CardCover.SetActive(false);
        Claw.fillOrigin = 0;
        for (int i = 15; i >= 0; i--)
        {
            Claw.fillAmount = i * 0.066f;
            yield return(new WaitForSeconds(0.002f));

            if (i == 5)
            {
                RedObj.SetActive(false);
            }
        }
        ClawObj.SetActive(false);
        // 상태에 따라 이미지 변경
        if (isProvoke)
        {
            graphic_change(2);
        }
        else if (isScrowOn)
        {
            graphic_change(3);
        }
        else if (isCatnipOn)
        {
            graphic_change(4);
        }
        else
        {
            graphic_change(0);
        }
    }
Пример #2
0
 // Start is called before the first frame update
 void Awake()
 {
     wallCard            = -1;
     blockSize           = gridView.blockSize;
     blockBuffer         = gridView.blockBuffer;
     HeroSlider.maxValue = GameMinute * 120;
     maxCatnip           = catnip.Length;
     maxScrow            = scrow.Length;
     StartCoroutine("HeroTimer");
     StartCoroutine("CatMove");
     graphic_change(0);
     RedObj.SetActive(false);
     ClawObj.SetActive(false);
     CardCover.SetActive(false);
     SP_Slider.value = 0;
     for (int i = 0; i < maxCatnip; i++)
     {
         catnip[i].SetActive(false);
     }
 }
Пример #3
0
    IEnumerator Attack()
    {
        yield return(new WaitForSeconds(2.5f));

        ClawObj.SetActive(true);
        CardCover.SetActive(true);
        Claw.fillOrigin = 1;
        for (int i = 0; i <= 10; i++)
        {
            Claw.fillAmount = i * 0.1f;
            yield return(new WaitForSeconds(0.002f));

            if (i == 4)
            {
                RedObj.SetActive(true);
                CDS.CardAttack();
                PlaySoundC(22);
            }
        }
        CardCover.SetActive(false);
        Claw.fillOrigin = 0;
        for (int i = 15; i >= 0; i--)
        {
            Claw.fillAmount = i * 0.066f;
            yield return(new WaitForSeconds(0.002f));

            if (i == 5)
            {
                RedObj.SetActive(false);
            }
        }
        ClawObj.SetActive(false);
        // 상태에 따라 이미지 변경
        isCatSkill = false;
        graphic_change();
    }