IEnumerator detectForceExitAttack() { yield return(new WaitUntil(() => (playerState & PlayerState.AttackBehaviour) == 0)); Debug.Log(playerState); attackSystem.ForceExitAttack(); }
IEnumerator detectForceExitAttack() { yield return(new WaitUntil(() => (enemyState & EnemyState.Attack) == 0)); // Debug.Log(playerState); attackSystem.ForceExitAttack(); }