|
| override MazeDirection | DecideDirection (Vector2Int position, bool canMoveLeft, bool canMoveRight, bool canMoveUp, bool canMoveDown) |
| | When overriden should return the MazeDirection that the crawler should move given the current state.
|
| |
| abstract MazeDirection | DecideDirection (Vector2Int position, bool canMoveLeft, bool canMoveRight, bool canMoveUp, bool canMoveDown) |
| | When overriden should return the MazeDirection that the crawler should move given the current state.
|
| |
|
void | Awake () |
| | Called by Unity.
|
| |
|
void | Update () |
| | Called by Unity.
|
| |
|
void | Restart () |
| | Resets the maze crawler to its initial start position.
|
| |
|
|
GameObject | breadcrumbPrefab |
| | The breadcrum game object that is dropped at every position.
|
| |
|
float | moveSpeed = 2f |
| | The move speed of the crawler move.
|
| |
◆ DecideDirection()
| override MazeDirection RoslynCSharp.Example.TestCrawler.DecideDirection |
( |
Vector2Int |
position, |
|
|
bool |
canMoveLeft, |
|
|
bool |
canMoveRight, |
|
|
bool |
canMoveUp, |
|
|
bool |
canMoveDown |
|
) |
| |
|
inlinevirtual |
When overriden should return the MazeDirection that the crawler should move given the current state.
- Parameters
-
| position | The current maze index position |
| canMoveLeft | Can the crawler move left or is there a wall in the way |
| canMoveRight | Can the crawler move right or is there a wall in the way |
| canMoveUp | Can the crawler move up or is there a wall in the way |
| canMoveDown | Can the crawler move down or is there a wall in the way |
- Returns
Implements RoslynCSharp.Example.MazeCrawler.
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/RoslynCSharp/Examples/Scripts/TestCrawler.cs