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

Boundry on the top and bottom of the screen to bounce bullets. More...

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

Public Member Functions

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

Public Attributes

float wallPercentEdge
 
Transform rightEdge
 

Detailed Description

Boundry on the top and bottom of the screen to bounce bullets.

Member Function Documentation

◆ Init()

void Wall.Init ( bool  isTop)

Initialize the wall to be position on the screen automatically.

Parameters
isTopShould 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
desiredRightEdgeThe position for rightEdge should match.

Member Data Documentation

◆ rightEdge

Transform Wall.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: