C# Class lab.AiController

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: marekdaniluk/lab

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

GetBool() public méthode

Gets bool parameters for ai behaviour.
public GetBool ( string key ) : bool
key string The name of the bool parameters.
Résultat bool

GetFloat() public méthode

Gets float parameters for ai behaviour.
public GetFloat ( string key ) : float
key string The name of the float parameters.
Résultat float

GetInt() public méthode

Gets int parameters for ai behaviour.
public GetInt ( string key ) : int
key string The name of the int parameters.
Résultat int

GetString() public méthode

Gets string parameters for ai behaviour.
public GetString ( string key ) : string
key string The name of the string parameters.
Résultat string

Run() public méthode

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

SetBool() public méthode

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.
Résultat void

SetFloat() public méthode

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.
Résultat void

SetInt() public méthode

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.
Résultat void

SetString() public méthode

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.
Résultat void