C# 클래스 weapon, 1gam-dungeon

상속: MonoBehaviour
파일 보기 프로젝트 열기: OneGameAMonth/1gam-dungeon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_sound_hit UnityEngine.AudioClip
damage int
hit_prefab GameObject

공개 메소드들

메소드 설명
OnCollisionEnter ( Collision other ) : void
Start ( ) : void
can_attack ( bool attack ) : void
set_damage ( int amount ) : void

메소드 상세

OnCollisionEnter() 공개 메소드

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

Start() 공개 메소드

public Start ( ) : void
리턴 void

can_attack() 공개 메소드

public can_attack ( bool attack ) : void
attack bool
리턴 void

set_damage() 공개 메소드

public set_damage ( int amount ) : void
amount int
리턴 void

프로퍼티 상세

_sound_hit 공개적으로 프로퍼티

public AudioClip,UnityEngine _sound_hit
리턴 UnityEngine.AudioClip

damage 공개적으로 프로퍼티

public int damage
리턴 int

hit_prefab 공개적으로 프로퍼티

public GameObject hit_prefab
리턴 GameObject