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

The bullet that will find SchmittyDoop with the FindGameObjectWithTag method and go after him. More...

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

Public Member Functions

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

Public Attributes

float maxVelocity
 
float maxRotatingVelocity
 
float chargeAmountMultiplier
 
float damageMultiplier
 
CoopBallHitParticle hitParticle
 
Collider2D cannonCollider
 

Detailed Description

The bullet that will find SchmittyDoop with the FindGameObjectWithTag method and go after him.

Member Function Documentation

◆ 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
collisionThe object collided with the bullet.

Member Data Documentation

◆ 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

CoopBallHitParticle CoopHomingMissile.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: