C# 클래스 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.
상속: MonoBehaviour, AvatarAttackListener
파일 보기 프로젝트 열기: matthewAURA/SlashRunner

공개 프로퍼티들

프로퍼티 타입 설명
angryBirdSound UnityEngine.AudioClip
explosion GameObject
explosionSound UnityEngine.AudioClip
remains GameObject
xTarget float
yTarget float

공개 메소드들

메소드 설명
OnAvatarAttack ( Avatar attack ) : void

Launches the bird towards the right

PrepareProximityBomb ( ) : void

메소드 상세

OnAvatarAttack() 공개 메소드

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

PrepareProximityBomb() 공개 메소드

public PrepareProximityBomb ( ) : void
리턴 void

프로퍼티 상세

angryBirdSound 공개적으로 프로퍼티

public AudioClip,UnityEngine angryBirdSound
리턴 UnityEngine.AudioClip

explosion 공개적으로 프로퍼티

Explosion animation prefab
public GameObject explosion
리턴 GameObject

explosionSound 공개적으로 프로퍼티

public AudioClip,UnityEngine explosionSound
리턴 UnityEngine.AudioClip

remains 공개적으로 프로퍼티

Prefab of the remains after explosion i.e. crater, coins, dead enemies
public GameObject remains
리턴 GameObject

xTarget 공개적으로 프로퍼티

The bomb's landing target
public float xTarget
리턴 float

yTarget 공개적으로 프로퍼티

public float yTarget
리턴 float