IEnumerator OncantMove(Enemy hit, BossManager boss) { if (hit != null) { yield return(new WaitForSeconds(0.1f)); SoundManager.instance.PlaySingle(attackSound); effectSc.EffectGenerate(hit); yield return(new WaitForSeconds(0.22f)); hit.PlayerAttack(DamageAmount(hit)); } if (boss != null) { yield return(new WaitForSeconds(0.1f)); SoundManager.instance.PlaySingle(attackSound); effectSc.EffectGenerateToBoss(boss); yield return(new WaitForSeconds(0.22f)); boss.PlayerAttackToBoss(DamageAmountToBoss(boss)); } yield return(new WaitForSeconds(0.78f)); isMoving = false; GManager.instance.playerTurn = false; }