Swarm Demo 1.6
Demonstration of the swarm object manager
Public Member Functions
Bullet Class Reference

SwarmItem that handles the bullets from the ship. Processes collisions and creates explosions. More...

List of all members.

Public Member Functions

override void Initialize (SwarmItemManager swarmItemManager, int prefabIndex, bool debugEvents)
 Overrides the SwarmItem's Initialize method and sets the originalScale.
void Fire (Vector3 velocity)
 Sets the bullet's velocity.
override void OnSetParentTransform ()
 Called after being parented to the active or inactive transforms.
override void FrameUpdate ()
 Called every frame to move the bullet and check if it is in bounds.

Detailed Description

SwarmItem that handles the bullets from the ship. Processes collisions and creates explosions.


Member Function Documentation

void Bullet.Fire ( Vector3  velocity)

Sets the bullet's velocity.

Parameters:
velocityVelocity of bullet
override void Bullet.FrameUpdate ( )

Called every frame to move the bullet and check if it is in bounds.

override void Bullet.Initialize ( SwarmItemManager  swarmItemManager,
int  prefabIndex,
bool  debugEvents 
)

Overrides the SwarmItem's Initialize method and sets the originalScale.

override void Bullet.OnSetParentTransform ( )

Called after being parented to the active or inactive transforms.


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