DoopelPonger
|
Animation delegate used to change the size and color of the light behind the player. More...
Public Member Functions | |
override void | Init (Animator playerAnimator) |
Initialize the animator. More... | |
override void | PlayerBadBallHit () |
The player has been hit with a bad ball. More... | |
override void | PlayerGoodBallHit () |
The player has been hit with a good ball. More... | |
override void | PowerUpActivated () |
The player has activated a power up. More... | |
override void | PowerUpChargeChange (float percentCharge, bool prematureActivation) |
The amount of charge the player has has changed. More... | |
override void | PowerUpDeactivated () |
The player has had their power up run out. More... | |
Public Attributes | |
Color | minColor |
Color | maxColor |
Vector3 | minSize |
Vector3 | maxSize |
Texture2D [] | noiseTextures |
float | swapRate |
Animation delegate used to change the size and color of the light behind the player.
This light is used to accent the current power up charge value with the scale and color changing based on the amount of charge. There is also a twinkle animation used by moving the verticies of the texture random in the x and y axis.
|
virtual |
Initialize the animator.
playerAnimator | The Unity animator component on the CoopPlayer gameObject. |
Implements CoopPlayerAnimatorDelegate.
|
virtual |
The player has been hit with a bad ball.
Implements CoopPlayerAnimatorDelegate.
|
virtual |
The player has been hit with a good ball.
Implements CoopPlayerAnimatorDelegate.
|
virtual |
The player has activated a power up.
Implements CoopPlayerAnimatorDelegate.
|
virtual |
The amount of charge the player has has changed.
chargePercent | The amount of charge the player has from 0 to 1 |
prematureActivation | Means that the player tried to use their power up before actually having a full charge. |
Implements CoopPlayerAnimatorDelegate.
|
virtual |
The player has had their power up run out.
Implements CoopPlayerAnimatorDelegate.
Color CoopPlayerLightAnimatorDelegate.maxColor |
The color the material should be when the player has full charge/currently has a power up activated.
Vector3 CoopPlayerLightAnimatorDelegate.maxSize |
The scale of the texture when the player has full charge.
Color CoopPlayerLightAnimatorDelegate.minColor |
The color the material should be when the player has no charge.
Vector3 CoopPlayerLightAnimatorDelegate.minSize |
The scale of the texture when the player has no charge.
Texture2D [] CoopPlayerLightAnimatorDelegate.noiseTextures |
The images of noise to offset the verticies of the light texture.
float CoopPlayerLightAnimatorDelegate.swapRate |
The amount of time a texture should be used before swapping to the next one