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
Mostrar archivo 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_oe property

This sprite for the bomb
public Sprite bomb
return Sprite

explosion public_oe property

Explosion animation
public GameObject explosion
return GameObject

explosionSound public_oe property

public AudioClip,UnityEngine explosionSound
return UnityEngine.AudioClip

remains public_oe property

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

xTarget public_oe property

The bomb's landing target
public float xTarget
return float

yTarget public_oe property

public float yTarget
return float