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...
|
| 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) |
| |
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.
◆ 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
-
| collision | The 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
-
| desiredRightEdge | The size of the trigger area. |
◆ 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: