|
DoopelPonger
|
The CoopBallSplitter is a ball that moves for a set amount of time, once that time is met the ball will split into several other balls. More...


Public Attributes | |
| float | splitTimer |
| CoopBall | splitObject |
| int | copies |
| float | splitterVelocity |
| float | badBallVelocity |
Public Attributes inherited from CoopBall | |
| Color | particleColor |
| CoopBallMovement | ballMovement |
| float | verticalRatio = .8f |
| float | verticalChangeRate = .5f |
| CoopBallHitParticle | hitParticleSystem |
Protected Member Functions | |
| override void | OnAwake () |
| Called when the child class should initialize any class level references. More... | |
| override void | OnInit () |
| Called when the child class should initialize any class level values. More... | |
Protected Member Functions inherited from CoopBadBall | |
| bool | PlayerHit (CoopPlayer player) |
Protected Member Functions inherited from CoopBall | |
| delegate bool | PlayerHitAction (CoopPlayer player) |
| void | DoNothing () |
| Used by the fixedUpdateAction when nothing should be done during the fixed update tick. More... | |
| bool | DoNothingAction (CoopPlayer player) |
| Do nothng special when the ball hits the player and always destroy the ball. More... | |
Additional Inherited Members | |
Public Member Functions inherited from CoopBall | |
| void | Awake () |
| void | Start () |
| void | Init () |
| void | FixedUpdate () |
| void | OnCollisionEnter2D (Collision2D collision) |
| void | PlayHitParticle () |
| Force the ball to play the particle used when the ball hits a player. Used in cases where an external collision wants to destroy the ball, like hitting the player's shield. More... | |
| void | ReturnBallMovement () |
| Force the ball to return the movement controller to the object pooler. Used in cases where an external collision wants to destroy the ball, like hitting the player's shield. More... | |
Protected Attributes inherited from CoopBall | |
| CoopObjectPooler | objectPooler |
| CommonDelegates.FixedUpdateAction | fixedUpdateAction |
| PlayerHitAction | playerHitAction |
The CoopBallSplitter is a ball that moves for a set amount of time, once that time is met the ball will split into several other balls.
|
protectedvirtual |
Called when the child class should initialize any class level references.
Reimplemented from CoopBadBall.
|
protectedvirtual |
Called when the child class should initialize any class level values.
Reimplemented from CoopBadBall.
| float CoopBallSplitter.badBallVelocity |
The velocity of the new balls spawned at the explosion.
| int CoopBallSplitter.copies |
The number of splitObjects that should be created.
| CoopBall CoopBallSplitter.splitObject |
The prefab of objects that should be spawned when the ball explodes into new balls.
| float CoopBallSplitter.splitterVelocity |
The velocity of the initial splitter ball.
| float CoopBallSplitter.splitTimer |
The amount of time after the ball spawns before exploding into several new balls.
1.8.14