C# 클래스 lab.AiController

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: marekdaniluk/lab

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
GetBool ( string key ) : bool

Gets bool parameters for ai behaviour.

GetFloat ( string key ) : float

Gets float parameters for ai behaviour.

GetInt ( string key ) : int

Gets int parameters for ai behaviour.

GetString ( string key ) : string

Gets string parameters for ai behaviour.

Run ( int i ) : bool

Runs tree behaviour.

SetBool ( string key, bool val ) : void

Sets bool parameters for ai behaviour.

SetFloat ( string key, float val ) : void

Sets float parameters for ai behaviour.

SetInt ( string key, int val ) : void

Sets int parameters for ai behaviour.

SetString ( string key, string val ) : void

Sets string parameters for ai behaviour.

메소드 상세

GetBool() 공개 메소드

Gets bool parameters for ai behaviour.
public GetBool ( string key ) : bool
key string The name of the bool parameters.
리턴 bool

GetFloat() 공개 메소드

Gets float parameters for ai behaviour.
public GetFloat ( string key ) : float
key string The name of the float parameters.
리턴 float

GetInt() 공개 메소드

Gets int parameters for ai behaviour.
public GetInt ( string key ) : int
key string The name of the int parameters.
리턴 int

GetString() 공개 메소드

Gets string parameters for ai behaviour.
public GetString ( string key ) : string
key string The name of the string parameters.
리턴 string

Run() 공개 메소드

Runs tree behaviour.
public Run ( int i ) : bool
i int Index of tree to run. Default value is 0.
리턴 bool

SetBool() 공개 메소드

Sets bool parameters for ai behaviour.
public SetBool ( string key, bool val ) : void
key string The name of the bool parameters.
val bool The new value for the bool parameters.
리턴 void

SetFloat() 공개 메소드

Sets float parameters for ai behaviour.
public SetFloat ( string key, float val ) : void
key string The name of the float parameters.
val float The new value for the float parameters.
리턴 void

SetInt() 공개 메소드

Sets int parameters for ai behaviour.
public SetInt ( string key, int val ) : void
key string The name of the int parameters.
val int The new value for the int parameters.
리턴 void

SetString() 공개 메소드

Sets string parameters for ai behaviour.
public SetString ( string key, string val ) : void
key string The name of the string parameters.
val string The new value for the string parameters.
리턴 void