Object used to fire bullets directly at a player to make sure they know how to use the shield.
More...
|
| void | Awake () |
| | Initialize references needed. More...
|
| |
| void | Init (System.Action animationFinished) |
| | Reset all state of the object as if it was brand new. Also trigger the fade in from nothing. More...
|
| |
| void | StartFiring (System.Action animationFinished) |
| | Start the cannon firing the numberOfShotsToFire. More...
|
| |
| void | StopFiring () |
| | Force the cannon to stop firing, even if not all the bullets have been fired. More...
|
| |
| void | FixedUpdate () |
| | Fire bullets, wait, or fade in/out depending on what methods have been called. More...
|
| |
Object used to fire bullets directly at a player to make sure they know how to use the shield.
◆ Awake()
| void TutorialBadCannon.Awake |
( |
| ) |
|
Initialize references needed.
◆ FixedUpdate()
| void TutorialBadCannon.FixedUpdate |
( |
| ) |
|
Fire bullets, wait, or fade in/out depending on what methods have been called.
◆ Init()
| void TutorialBadCannon.Init |
( |
System.Action |
animationFinished | ) |
|
Reset all state of the object as if it was brand new. Also trigger the fade in from nothing.
- Parameters
-
| animationFinished | Callback for when the cannon is fully visible. |
◆ StartFiring()
| void TutorialBadCannon.StartFiring |
( |
System.Action |
animationFinished | ) |
|
Start the cannon firing the numberOfShotsToFire.
- Parameters
-
| animationFinished | Callback for when all shots have been fired. |
◆ StopFiring()
| void TutorialBadCannon.StopFiring |
( |
| ) |
|
Force the cannon to stop firing, even if not all the bullets have been fired.
◆ badBallPrefab
◆ ballMovementVelocity
| float TutorialBadCannon.ballMovementVelocity |
How fast the bullet should move.
◆ firePosition
| Transform TutorialBadCannon.firePosition |
Place bullets should spawn from.
◆ meshRenderers
| MeshRenderer [] TutorialBadCannon.meshRenderers |
Renderers used to change the alpha when becoming (in)visibile.
◆ numberOfShotsToFire
| int TutorialBadCannon.numberOfShotsToFire |
Number of bullets to shoot.
◆ playerToAttack
◆ timeBetweenShots
| float TutorialBadCannon.timeBetweenShots |
The time to wait before firing the next bullet.
◆ timeToTransitionIn
| float TutorialBadCannon.timeToTransitionIn |
The amount of time it takes to become visible.
◆ timeToTransitionOut
| float TutorialBadCannon.timeToTransitionOut |
The amount of time it takes to become invisible.
The documentation for this class was generated from the following file: