Boundry on the top and bottom of the screen to bounce bullets.
More...
|
void | Init (bool isTop) |
| Initialize the wall to be position on the screen automatically. More...
|
|
void | StretchToPoint (Vector3 desiredRightEdge) |
| Stretch the scale of the object so that the rightEdge matches the desiredRightEdge position. More...
|
|
Boundry on the top and bottom of the screen to bounce bullets.
◆ Init()
void Wall.Init |
( |
bool |
isTop | ) |
|
Initialize the wall to be position on the screen automatically.
- Parameters
-
isTop | Should spawn with a positive y axis parameter, else negative. |
◆ StretchToPoint()
void Wall.StretchToPoint |
( |
Vector3 |
desiredRightEdge | ) |
|
Stretch the scale of the object so that the rightEdge matches the desiredRightEdge position.
- Parameters
-
desiredRightEdge | The position for rightEdge should match. |
◆ rightEdge
The position of the right edge of the wall.
◆ wallPercentEdge
float Wall.wallPercentEdge |
The percent of the screen the wall should start/end at.
The documentation for this class was generated from the following file:
- Assets/Scripts/GameComponents/Wall.cs