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

Area of the screen used to catch CoopBalls that did not hit a player and should be put back in the object pooler for future use. More...

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

Public Member Functions

void Awake ()
 Initialize the references used by the class. More...
 
void StretchToPoint (Vector3 desiredRightEdge)
 Set the scale of the object so that the rightEdge is matching the point desiredRightEdge. More...
 
void OnTriggerEnter2D (Collider2D collision)
 

Public Attributes

Transform rightEdge
 

Detailed Description

Area of the screen used to catch CoopBalls that did not hit a player and should be put back in the object pooler for future use.

Member Function Documentation

◆ Awake()

void CoopBallCollector.Awake ( )

Initialize the references used by the class.

◆ OnTriggerEnter2D()

void CoopBallCollector.OnTriggerEnter2D ( Collider2D  collision)

Take the object that collided with the trigger and return it to the object pooler.

Parameters
collisionThe object that hit the trigger.

◆ StretchToPoint()

void CoopBallCollector.StretchToPoint ( Vector3  desiredRightEdge)

Set the scale of the object so that the rightEdge is matching the point desiredRightEdge.

Parameters
desiredRightEdgeThe size of the trigger area.

Member Data Documentation

◆ rightEdge

Transform CoopBallCollector.rightEdge

The right edge of the box collider, used to create the correct proportions of the tigger area.


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