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

One of two cannons sticking out of the player at 45 degrees(ish) that fire alternately. When firing the bullets look like they are traveling in a V. More...

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

Public Member Functions

void Awake ()
 Set up references before they are used. More...
 
void SpawnCannon (System.Action callback)
 Triggers the spawn animation in the animator. More...
 
void DespawnCannon (System.Action callback)
 Triggers the despawn animation in the animator. More...
 
void FireCannon (CoopMiniBall miniBall)
 Trigger the fire animation and fire a bullet. More...
 
void AnimationFinished ()
 The callback from the Unity Animator once an animation is finished. More...
 

Public Attributes

Transform firePosition
 

Detailed Description

One of two cannons sticking out of the player at 45 degrees(ish) that fire alternately. When firing the bullets look like they are traveling in a V.

Member Function Documentation

◆ AnimationFinished()

void CoopVShooterCannon.AnimationFinished ( )

The callback from the Unity Animator once an animation is finished.

◆ Awake()

void CoopVShooterCannon.Awake ( )

Set up references before they are used.

◆ DespawnCannon()

void CoopVShooterCannon.DespawnCannon ( System.Action  callback)

Triggers the despawn animation in the animator.

Parameters
callbackThe function that should be notified when the despawn animation is finished.

◆ FireCannon()

void CoopVShooterCannon.FireCannon ( CoopMiniBall  miniBall)

Trigger the fire animation and fire a bullet.

Parameters
miniBallThe bullet that should be fired.

◆ SpawnCannon()

void CoopVShooterCannon.SpawnCannon ( System.Action  callback)

Triggers the spawn animation in the animator.

Parameters
callbackThe function that should be notified when the spawn animation is finished.

Member Data Documentation

◆ firePosition

Transform CoopVShooterCannon.firePosition

The position the ball should be emitted at.


The documentation for this class was generated from the following file: