void HitEnemyInFront() { var checkHit = AfterDashFrontEnemyDetector.GroundCheckHit(); if (checkHit.collider != null && DefineHittedObjectType(checkHit.collider.transform) == HittedObjectType.Enemy) { var eventArgs = new HitDetectionEventArgs() { HittedObject = checkHit.collider.gameObject, HittedObjectType = HittedObjectType.Enemy, HitPoint = checkHit.point, HitDirection = HitDirection.RightSide }; PlayerHittedObject?.Invoke(eventArgs); } }