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
Показать файл Открыть проект

Открытые методы

Метод Описание
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