moves to a random adjacent point on the map then waits a little and repeats
can be used for decorations and animals, used for the huntable blobs in Three
https://citybuilder.softleitner.com/manual/walkers
|
enum | WandererState { Waiting = 0
, Wandering = 10
} |
|
|
string | SaveData () |
| serializes the objects state(usually to json) and returns it
|
|
void | LoadData (string json) |
| deserializes the serialized json data and loads the data as its new state
|
|
|
TileBase[] | Tiles |
|
string | Tilemap |
|
Transform | Pivot |
|
float | Interval |
|
float | Speed |
|
string | Key |
|
IntEvent | StateChanged |
|
◆ LoadData()
void CityBuilderCore.Wanderer.LoadData |
( |
string | json | ) |
|
|
inline |
◆ SaveData()
string CityBuilderCore.Wanderer.SaveData |
( |
| ) |
|
|
inline |
serializes the objects state(usually to json) and returns it
- Returns
- serialized save data
Implements CityBuilderCore.ISaveData.