C# Class OrbitalBirdBombScript, SlashRunner

Summons the almighty bird bomb from the sky to wreck havoc upon its enemies. Upon reaching its destination it spawns the given prefab (e.g. a smouldering crater)
Inheritance: MonoBehaviour
Show file Open project: matthewAURA/SlashRunner

Public Properties

Property Type Description
bomb Sprite
explosion GameObject
explosionSound UnityEngine.AudioClip
remains GameObject
xTarget float
yTarget float

Public Methods

Method Description
PlayAnimation ( ) : void
PlaySound ( ) : void
SpawnProjectile ( Vector3 position ) : void
SpawnRemains ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

PlayAnimation() public method

public PlayAnimation ( ) : void
return void

PlaySound() public method

public PlaySound ( ) : void
return void

SpawnProjectile() public method

public SpawnProjectile ( Vector3 position ) : void
position Vector3
return void

SpawnRemains() public method

public SpawnRemains ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

bomb public property

This sprite for the bomb
public Sprite bomb
return Sprite

explosion public property

Explosion animation
public GameObject explosion
return GameObject

explosionSound public property

public AudioClip,UnityEngine explosionSound
return UnityEngine.AudioClip

remains public property

The prefab that should spawn when the bomb explodes
public GameObject remains
return GameObject

xTarget public property

The bomb's landing target
public float xTarget
return float

yTarget public property

public float yTarget
return float