コード例 #1
0
    // 방어
    public void Shield()
    {
        if (ShieldLimit <= 0 || !CanShield)
        {
            return;
        }

        if (ShieldLimit > 0 && CanShield)
        {
            CanShield = false;
            playerShield.SetActive(true);
            ShieldLimit--;
            UIM.Shield();
        }
        Invoke("ActivateShield", shieldTimeOut);
    }
コード例 #2
0
    // 방어
    public void Shield()
    {
        if (ShieldLimit <= 0 || !CanShield)
        {
            return;
        }

        if (ShieldLimit > 0 && CanShield)
        {
            B_SoundManager.instance.PlaySingle(createShield);
            CanShield = false;
            playerShield.SetActive(true);
            ShieldLimit--;
            UIM.Shield();
        }
        Invoke("ActivateShield", shieldTimeOut);
    }