C# 클래스 AsteroidCollision

상속: MonoBehaviour
파일 보기 프로젝트 열기: waltzaround/Cardboard-Asteroids 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
explosionPrefab GameObject
health int

공개 메소드들

메소드 설명
OnCollisionEnter ( Collision collision ) : void
Start ( ) : void
Update ( ) : void
createExplosionAtPos ( Vector3 pos, float maxScale ) : void

메소드 상세

OnCollisionEnter() 공개 메소드

public OnCollisionEnter ( Collision collision ) : void
collision Collision
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

createExplosionAtPos() 공개 메소드

public createExplosionAtPos ( Vector3 pos, float maxScale ) : void
pos Vector3
maxScale float
리턴 void

프로퍼티 상세

explosionPrefab 공개적으로 프로퍼티

public GameObject explosionPrefab
리턴 GameObject

health 공개적으로 프로퍼티

public int health
리턴 int