DoopelPonger
Public Member Functions | Public Attributes | List of all members
AITriggerMovement Class Reference

Physics trigger to tell the AIPlayer that the AIBall is getting close and the player should follow the ball again. More...

Inheritance diagram for AITriggerMovement:
Inheritance graph
[legend]
Collaboration diagram for AITriggerMovement:
Collaboration graph
[legend]

Public Member Functions

void OnTriggerEnter2D (Collider2D collision)
 Check if the object entering the trigger is an AIBall, if so notify the AIPlayer. More...
 
void OnTriggerExit2D (Collider2D collision)
 Tell the AIPlayer to stop following the AIBall. More...
 

Public Attributes

AIPlayer player
 

Detailed Description

Physics trigger to tell the AIPlayer that the AIBall is getting close and the player should follow the ball again.

Member Function Documentation

◆ OnTriggerEnter2D()

void AITriggerMovement.OnTriggerEnter2D ( Collider2D  collision)

Check if the object entering the trigger is an AIBall, if so notify the AIPlayer.

Parameters
collisionObject entering the trigger.

◆ OnTriggerExit2D()

void AITriggerMovement.OnTriggerExit2D ( Collider2D  collision)

Tell the AIPlayer to stop following the AIBall.

Parameters
collisionObject leaving the trigger.

Member Data Documentation

◆ player

AIPlayer AITriggerMovement.player

Player to notifiy that the AIBall is getting close.


The documentation for this class was generated from the following file: