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
Show file 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 property

public AudioClip,UnityEngine angryBirdSound
return UnityEngine.AudioClip

explosion public property

Explosion animation prefab
public GameObject explosion
return GameObject

explosionSound public property

public AudioClip,UnityEngine explosionSound
return UnityEngine.AudioClip

remains public property

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