Beispiel #1
0
    //Coroutine
    /// <summary>
    /// 회피 효과 코루틴
    /// </summary>
    /// <returns></returns>
    private IEnumerator AvoidCoroutine()
    {
        yield return(new WaitForSecondsRealtime(data.Rolling_MsBetweenInvincible));

        CurrentCharacter.AddEffect(m_AvoidEffect, new CharacterEffectList.EffectStateStruct(null));
        yield return(new WaitForSecondsRealtime(data.Rolling_InvincibleActiveTime));

        CurrentCharacter.RemoveEffect(m_AvoidEffect);

        m_AvoidCoroutine = null;
    }