C# 클래스 Unit, ES2015C

상속: MonoBehaviour
파일 보기 프로젝트 열기: jgirald/ES2015C 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
visibility float

보호된 프로퍼티들

프로퍼티 타입 설명
doSound AudioClip
idleSound AudioClip
moving bool
running bool
runningSound AudioClip
walkingSound AudioClip

공개 메소드들

메소드 설명
FindClosest ( string tag ) : GameObject
GoTo ( Vector3 target, bool isRunning ) : void
makeDoSound ( ) : void

보호된 메소드들

메소드 설명
AimAtTarget ( ) : void
Animating ( ) : void
Awake ( ) : void
CancelPath ( ) : void

Tell the unit to cancel the movement path to the given position.

HasPath ( ) : bool

Tell the unit to cancel the movement path to the given position.

OnGUI ( ) : void
OnMouseDown ( ) : void
SetNewPath ( Vector3 target, bool isRunning ) : void

Tells the unit to move to the given position, by generating and following a route to the desired position.

Update ( ) : void
UseWeapon ( ) : void
chargeSounds ( string objectName ) : void

비공개 메소드들

메소드 설명
FittedCharacterCollider ( ) : void
OnPathComplete ( Path newPath ) : void
moveToPosition ( ) : void

메소드 상세

AimAtTarget() 보호된 메소드

protected AimAtTarget ( ) : void
리턴 void

Animating() 보호된 메소드

protected Animating ( ) : void
리턴 void

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

CancelPath() 보호된 메소드

Tell the unit to cancel the movement path to the given position.
protected CancelPath ( ) : void
리턴 void

FindClosest() 공개 메소드

public FindClosest ( string tag ) : GameObject
tag string
리턴 GameObject

GoTo() 공개 메소드

public GoTo ( Vector3 target, bool isRunning ) : void
target Vector3
isRunning bool
리턴 void

HasPath() 보호된 메소드

Tell the unit to cancel the movement path to the given position.
protected HasPath ( ) : bool
리턴 bool

OnGUI() 보호된 메소드

protected OnGUI ( ) : void
리턴 void

OnMouseDown() 보호된 메소드

protected OnMouseDown ( ) : void
리턴 void

SetNewPath() 보호된 메소드

Tells the unit to move to the given position, by generating and following a route to the desired position.
protected SetNewPath ( Vector3 target, bool isRunning ) : void
target Vector3 The position we want the unit to move to.
isRunning bool
리턴 void

Update() 보호된 메소드

protected Update ( ) : void
리턴 void

UseWeapon() 보호된 메소드

protected UseWeapon ( ) : void
리턴 void

chargeSounds() 보호된 메소드

protected chargeSounds ( string objectName ) : void
objectName string
리턴 void

makeDoSound() 공개 메소드

public makeDoSound ( ) : void
리턴 void

프로퍼티 상세

doSound 보호되어 있는 프로퍼티

protected AudioClip doSound
리턴 AudioClip

idleSound 보호되어 있는 프로퍼티

protected AudioClip idleSound
리턴 AudioClip

moving 보호되어 있는 프로퍼티

protected bool moving
리턴 bool

running 보호되어 있는 프로퍼티

protected bool running
리턴 bool

runningSound 보호되어 있는 프로퍼티

protected AudioClip runningSound
리턴 AudioClip

visibility 공개적으로 프로퍼티

public float visibility
리턴 float

walkingSound 보호되어 있는 프로퍼티

protected AudioClip walkingSound
리턴 AudioClip