Trigger used to record if the player has touched the collider or not. It is used by the TutorialPlayerMove to make sure the player touched the walls.
More...
Trigger used to record if the player has touched the collider or not. It is used by the TutorialPlayerMove to make sure the player touched the walls.
◆ Awake()
void TutorialPlayerMoveToTrigger.Awake |
( |
| ) |
|
Initialize variables used in the trigger.
◆ IsPlayerFound()
bool TutorialPlayerMoveToTrigger.IsPlayerFound |
( |
| ) |
|
- Returns
- True if the player has touched the trigger, otherwise false.
◆ OnTriggerEnter2D()
void TutorialPlayerMoveToTrigger.OnTriggerEnter2D |
( |
Collider2D |
collision | ) |
|
Check if the object is the player number we expect.
- Parameters
-
collision | The object touching the collider. |
◆ playerNumberToLookFor
int TutorialPlayerMoveToTrigger.playerNumberToLookFor |
The player number that the collider is expecting to be hit by.
The documentation for this class was generated from the following file: