C# Class OnAttackLaunchAngryBird, SlashRunner

Launches the bird off into the distance when attacked, destroying a bunch of enemies at a hardcoded impact point and releasing a whole bunch of coins! This is a one-off script so excuse the tight coupling.
Inheritance: MonoBehaviour, AvatarAttackListener
Datei anzeigen Open project: matthewAURA/SlashRunner

Public Properties

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

Public Methods

Method Description
OnAvatarAttack ( Avatar attack ) : void

Launches the bird towards the right

PrepareProximityBomb ( ) : void

Method Details

OnAvatarAttack() public method

Launches the bird towards the right
public OnAvatarAttack ( Avatar attack ) : void
attack Avatar
return void

PrepareProximityBomb() public method

public PrepareProximityBomb ( ) : void
return void

Property Details

angryBirdSound public_oe property

public AudioClip,UnityEngine angryBirdSound
return UnityEngine.AudioClip

explosion public_oe property

Explosion animation prefab
public GameObject explosion
return GameObject

explosionSound public_oe property

public AudioClip,UnityEngine explosionSound
return UnityEngine.AudioClip

remains public_oe property

Prefab of the remains after explosion i.e. crater, coins, dead enemies
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