Пример #1
0
    private IEnumerator InvincibilityRoutine()
    {
        Invincible = true;

        Coroutine StrobeInstance = StartCoroutine(StrobeRoutine());

        yield return(new WaitForSeconds(2));

        StopCoroutine(StrobeInstance);

        Instance.SetOpacity(1f);

        Invincible = false;

        InvincibilityRoutineInstance = null;
    }