예제 #1
0
    private IEnumerator Invincibility()
    {
        int count = 0;

        while (count < 5)
        {
            yield return(new WaitForSeconds(0.15f));

            playerAnimCtrl.SetAlpha(0);
            yield return(new WaitForSeconds(0.15f));

            playerAnimCtrl.SetAlpha(1);
            count++;
        }
        SetIgnoreCollision(false, Common.layerEnemy);
    }