The bullet that will find SchmittyDoop with the FindGameObjectWithTag method and go after him.
More...
|
| void | Awake () |
| | Initialize references needed by the bullet. More...
|
| |
| void | Init () |
| | Initialize the variables used by the bullet. More...
|
| |
| void | FixedUpdate () |
| | Update the velocity of the bullet so that it is on track to hit Schmitty Doop. More...
|
| |
| void | OnCollisionEnter2D (Collision2D collision) |
| | Check the object that collided with the bullet and give charge if it hit the player or damage if it is Schmitty Doop. More...
|
| |
The bullet that will find SchmittyDoop with the FindGameObjectWithTag method and go after him.
◆ Awake()
| void CoopHomingMissile.Awake |
( |
| ) |
|
Initialize references needed by the bullet.
◆ FixedUpdate()
| void CoopHomingMissile.FixedUpdate |
( |
| ) |
|
Update the velocity of the bullet so that it is on track to hit Schmitty Doop.
◆ Init()
| void CoopHomingMissile.Init |
( |
| ) |
|
Initialize the variables used by the bullet.
◆ OnCollisionEnter2D()
| void CoopHomingMissile.OnCollisionEnter2D |
( |
Collision2D |
collision | ) |
|
Check the object that collided with the bullet and give charge if it hit the player or damage if it is Schmitty Doop.
- Parameters
-
| collision | The object collided with the bullet. |
◆ cannonCollider
| Collider2D CoopHomingMissile.cannonCollider |
The collider of the cannon that fired the bullet. This is used so that the bullet will not collide the first few frames when they overlap.
◆ chargeAmountMultiplier
| float CoopHomingMissile.chargeAmountMultiplier |
The amount of power up charge that should be given to the player if it collides with the player instead of Schmitty Doop.
◆ damageMultiplier
| float CoopHomingMissile.damageMultiplier |
The amount of damage that should be done to Schmitty Doop.
◆ hitParticle
The particle system that should play when the bullet hits an object.
◆ maxRotatingVelocity
| float CoopHomingMissile.maxRotatingVelocity |
Turning radius of the bullet.
◆ maxVelocity
| float CoopHomingMissile.maxVelocity |
How fast the bullet should move.
The documentation for this class was generated from the following file: