C# 클래스 RedBlueGames.Tools.AttackCast2D

Handles casting between this object and its position in the previous frame. It then sends a callback for each object hit.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: redbluegames/rb-unity-tools

공개 메소드들

메소드 설명
Begin ( ) : void

Begin the attack sweep

End ( ) : void

End the attack sweep

비공개 메소드들

메소드 설명
CastForHits ( ) : IEnumerator
GetHitObject ( RaycastHit2D hit ) : GameObject
OnDrawGizmosSelected ( ) : void
OnHit ( HitEventArgs args ) : void
ReportHit ( RaycastHit2D hit ) : void

Apply the OnHit function to a specified Raycast hit. This should be made project-agnostic at some point, so that AttackCasts can be a tool.

ReportHits ( RaycastHit2D hits ) : void

Send Hits to hit objects, from a Raycast hit array.

메소드 상세

Begin() 공개 메소드

Begin the attack sweep
public Begin ( ) : void
리턴 void

End() 공개 메소드

End the attack sweep
public End ( ) : void
리턴 void