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
Afficher le fichier Open project: matthewAURA/SlashRunner

Méthodes publiques

Свойство Type Description
angryBirdSound UnityEngine.AudioClip
explosion GameObject
explosionSound UnityEngine.AudioClip
remains GameObject
xTarget float
yTarget float

Méthodes publiques

Méthode Description
OnAvatarAttack ( Avatar attack ) : void

Launches the bird towards the right

PrepareProximityBomb ( ) : void

Method Details

OnAvatarAttack() public méthode

Launches the bird towards the right
public OnAvatarAttack ( Avatar attack ) : void
attack Avatar
Résultat void

PrepareProximityBomb() public méthode

public PrepareProximityBomb ( ) : void
Résultat void

Property Details

angryBirdSound public_oe property

public AudioClip,UnityEngine angryBirdSound
Résultat UnityEngine.AudioClip

explosion public_oe property

Explosion animation prefab
public GameObject explosion
Résultat GameObject

explosionSound public_oe property

public AudioClip,UnityEngine explosionSound
Résultat UnityEngine.AudioClip

remains public_oe property

Prefab of the remains after explosion i.e. crater, coins, dead enemies
public GameObject remains
Résultat GameObject

xTarget public_oe property

The bomb's landing target
public float xTarget
Résultat float

yTarget public_oe property

public float yTarget
Résultat float