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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
PlayAnimation ( ) : void
PlaySound ( ) : void
SpawnProjectile ( Vector3 position ) : void
SpawnRemains ( ) : void
Start ( ) : void
Update ( ) : void

메소드 상세

PlayAnimation() 공개 메소드

public PlayAnimation ( ) : void
리턴 void

PlaySound() 공개 메소드

public PlaySound ( ) : void
리턴 void

SpawnProjectile() 공개 메소드

public SpawnProjectile ( Vector3 position ) : void
position Vector3
리턴 void

SpawnRemains() 공개 메소드

public SpawnRemains ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

bomb 공개적으로 프로퍼티

This sprite for the bomb
public Sprite bomb
리턴 Sprite

explosion 공개적으로 프로퍼티

Explosion animation
public GameObject explosion
리턴 GameObject

explosionSound 공개적으로 프로퍼티

public AudioClip,UnityEngine explosionSound
리턴 UnityEngine.AudioClip

remains 공개적으로 프로퍼티

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

xTarget 공개적으로 프로퍼티

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

yTarget 공개적으로 프로퍼티

public float yTarget
리턴 float