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

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...

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

Public Member Functions

void Awake ()
 
void OnTriggerEnter2D (Collider2D collision)
 
bool IsPlayerFound ()
 

Public Attributes

int playerNumberToLookFor
 

Detailed Description

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.

Member Function Documentation

◆ 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
collisionThe object touching the collider.

Member Data Documentation

◆ 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: