CoopPlayerPowerUp implementation to shoot the CoopBoomerang.
More...
|
void | BoomerangReturned () |
| The boomerang has returned to the player and the power up should finish anything that needs to be done. More...
|
|
void | Awake () |
| Initialize all references of the power up and make sure the child class has had their awake method called. More...
|
|
void | Init () |
| Initialize the values of the power up and make sure the child class has had their init method called. More...
|
|
void | TriggerPowerUp (CoopPowerUpController powerUpController) |
| The player has triggered the power up and the power up should now do the actions. More...
|
|
void | FixedUpdate () |
| Reccord how long the power up has been active and call the child FixedUpdate method. More...
|
|
void | RemovePowerUp (bool rightNow) |
| Force the power up to end. Used when a player has full charge and then uses the shield to drain the charge causing the power up to go away. More...
|
|
|
override void | ChildAwake () |
| Allows for implementations to initialize references before use. More...
|
|
override void | ChildDespawnPowerUp (bool rightNow) |
| The class needs to clean up everything because the power up is not going to be used anymore. More...
|
|
override void | ChildFixedUpdate () |
| Method called during the fixed update tick. More...
|
|
override void | ChildInit () |
| Allows for implementations to initialize variables before use. More...
|
|
override void | ChildTriggerPowerUp () |
| Method called when the player has activated the power up. More...
|
|
override float | GetMaxTime () |
|
override void | TimeUp () |
| The maxTime of the power up has been reached and the child should despawn the power up. More...
|
|
void | PowerUpFinished () |
| Available for children to call if they want to power up to end right now. More...
|
|
void | DestroyPowerUp () |
| Available for children to call if they want to power up to end right now without any norifications to other systems. More...
|
|
CoopPlayerPowerUp implementation to shoot the CoopBoomerang.
◆ BoomerangReturned()
void CoopBoomerangController.BoomerangReturned |
( |
| ) |
|
The boomerang has returned to the player and the power up should finish anything that needs to be done.
◆ ChildAwake()
override void CoopBoomerangController.ChildAwake |
( |
| ) |
|
|
protectedvirtual |
Allows for implementations to initialize references before use.
Implements CoopPlayerPowerUp.
◆ ChildDespawnPowerUp()
override void CoopBoomerangController.ChildDespawnPowerUp |
( |
bool |
rightNow | ) |
|
|
protectedvirtual |
The class needs to clean up everything because the power up is not going to be used anymore.
- Parameters
-
rightNow | Used to also tell the power up to destory itself immediately. As of right now, this use case isn't actually used. |
Implements CoopPlayerPowerUp.
◆ ChildFixedUpdate()
override void CoopBoomerangController.ChildFixedUpdate |
( |
| ) |
|
|
protectedvirtual |
◆ ChildInit()
override void CoopBoomerangController.ChildInit |
( |
| ) |
|
|
protectedvirtual |
Allows for implementations to initialize variables before use.
Implements CoopPlayerPowerUp.
◆ ChildTriggerPowerUp()
override void CoopBoomerangController.ChildTriggerPowerUp |
( |
| ) |
|
|
protectedvirtual |
Method called when the player has activated the power up.
Implements CoopPlayerPowerUp.
◆ GetMaxTime()
override float CoopBoomerangController.GetMaxTime |
( |
| ) |
|
|
protectedvirtual |
- Returns
- The total amount of time the power up should stay alive before being deactivated.
Implements CoopPlayerPowerUp.
◆ TimeUp()
override void CoopBoomerangController.TimeUp |
( |
| ) |
|
|
protectedvirtual |
The maxTime of the power up has been reached and the child should despawn the power up.
Implements CoopPlayerPowerUp.
◆ boomerangPrefab
The boomerang prefab to spawn when the power up is triggered.
◆ boomerangStartPosition
Transform [] CoopBoomerangController.boomerangStartPosition |
The position the boomerang should spawn when thrown. Index 0 is for the player on the left, index 1 is for the player on the right.
◆ distanceToTravel
float [] CoopBoomerangController.distanceToTravel |
The distance in front of the player the boomerang should fly to.Index 0 is for the player on the left, index 1 is for the player on the right.
◆ initialBoomerangRotation
float [] CoopBoomerangController.initialBoomerangRotation |
The starting rotation of the boomerang when thrown. Index 0 is for the player on the left, index 1 is for the player on the right.
The documentation for this class was generated from the following file: