MyDungeon Documentation
CreatureController Class |
The Creature Controller component tracks all creatures on the map and executes their AI during their turn
Inheritance Hierarchy
Namespace: MyDungeon.Controllers
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class CreatureController : MonoBehaviour
The CreatureController type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CreatureController | Initializes a new instance of the CreatureController class |
Methods
Name | Description | |
---|---|---|
Awake |
Initializes the creatures list
| |
MoveCreatures |
Executes each creature's AI via their MoveCreature method
| |
Update |
Checks that it is not currently the player's turn then executes the MoveCreatures coroutine
|
Fields
Name | Description | |
---|---|---|
CreaturesMoving |
Indicates whether or not it is currently the creatures' turn
|
Extension Methods
Name | Description | |
---|---|---|
Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
See Also