Physics trigger to tell the AIPlayer that the AIBall is getting close and the player should follow the ball again.
More...
Physics trigger to tell the AIPlayer that the AIBall is getting close and the player should follow the ball again.
◆ OnTriggerEnter2D()
void AITriggerMovement.OnTriggerEnter2D |
( |
Collider2D |
collision | ) |
|
Check if the object entering the trigger is an AIBall, if so notify the AIPlayer.
- Parameters
-
collision | Object entering the trigger. |
◆ OnTriggerExit2D()
void AITriggerMovement.OnTriggerExit2D |
( |
Collider2D |
collision | ) |
|
Tell the AIPlayer to stop following the AIBall.
- Parameters
-
collision | Object leaving the trigger. |
◆ player
Player to notifiy that the AIBall is getting close.
The documentation for this class was generated from the following file: