C# 클래스 BatBehavior, Demonology

상속: EnemyBehavior
파일 보기 프로젝트 열기: Qlevine20/Demonology 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DeathSound UnityEngine.AudioClip
PlayerFoundSound UnityEngine.AudioClip
Poof GameObject
locs Vector2[]
mobFacingRight bool
respawn bool
speed float
targetRange float

보호된 프로퍼티들

프로퍼티 타입 설명
ArrayDir int
Pos int
startScale Vector3

공개 메소드들

메소드 설명
DistanceBetween ( Vector2 pos1, Vector2 pos2 ) : float
Flip ( ) : void
MoveBetweenPoints ( Vector2 p ) : bool
OnCollisionEnter2D ( Collision2D other ) : void
OnDeath ( ) : void
OnDrawGizmos ( ) : void
OnRespawn ( ) : void
OnTriggerEnter2D ( Collider2D other ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
SmartMove ( Vector3 oldPos, Vector3 moveToPos, float moveDist ) : void

메소드 상세

DistanceBetween() 공개 메소드

public DistanceBetween ( Vector2 pos1, Vector2 pos2 ) : float
pos1 Vector2
pos2 Vector2
리턴 float

Flip() 공개 메소드

public Flip ( ) : void
리턴 void

MoveBetweenPoints() 공개 메소드

public MoveBetweenPoints ( Vector2 p ) : bool
p Vector2
리턴 bool

OnCollisionEnter2D() 공개 메소드

public OnCollisionEnter2D ( Collision2D other ) : void
other Collision2D
리턴 void

OnDeath() 공개 메소드

public OnDeath ( ) : void
리턴 void

OnDrawGizmos() 공개 메소드

public OnDrawGizmos ( ) : void
리턴 void

OnRespawn() 공개 메소드

public OnRespawn ( ) : void
리턴 void

OnTriggerEnter2D() 공개 메소드

public OnTriggerEnter2D ( Collider2D other ) : void
other UnityEngine.Collider2D
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

ArrayDir 보호되어 있는 프로퍼티

protected int ArrayDir
리턴 int

DeathSound 공개적으로 프로퍼티

public AudioClip,UnityEngine DeathSound
리턴 UnityEngine.AudioClip

PlayerFoundSound 공개적으로 프로퍼티

public AudioClip,UnityEngine PlayerFoundSound
리턴 UnityEngine.AudioClip

Poof 공개적으로 프로퍼티

public GameObject Poof
리턴 GameObject

Pos 보호되어 있는 프로퍼티

protected int Pos
리턴 int

locs 공개적으로 프로퍼티

public Vector2[] locs
리턴 Vector2[]

mobFacingRight 공개적으로 프로퍼티

public bool mobFacingRight
리턴 bool

respawn 공개적으로 프로퍼티

public bool respawn
리턴 bool

speed 공개적으로 프로퍼티

public float speed
리턴 float

startScale 보호되어 있는 프로퍼티

protected Vector3 startScale
리턴 Vector3

targetRange 공개적으로 프로퍼티

public float targetRange
리턴 float