C# Класс lab.AiController

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

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