Class ManagerComponent
Related to:SoyWar.SimplePlantGrowth
/
Inherits from:objectObjectComponentBehaviourMonoBehaviour
/
Implemented in:SoyWar.SimplePlantGrowth.dll
Syntax
[DisallowMultipleComponent]
[AddComponentMenu("Simple Plant Growth/Plant Growth Phase Manager")]
[DefaultExecutionOrder(-100)]
public sealed class ManagerComponent : MonoBehaviour
Properties
Name | Description |
---|---|
AutoGrowth | Enables the automatic growth. |
Database | Database storing all persisted plant assets. |
Dynamic | Takes into account external modifications made in the terrain. |
InitAuto | Enables automatic tracking of assets existing on the targeted terrain during initialization. |
Instance | Singleton |
Persistent | Keeps terrain changes in editor mode. |
TimeOffset | Relative time offset to be added to the global time. |
Methods
Name | Description |
---|---|
Grow(params Terrain[]) | Grows plants on specific terrains. |
GrowAll() | Grows all plants manually. |
GrowAllAsync() | Grows all plants manually. |
GrowAsync(params Terrain[]) | Grows plants on specific terrains. |
ResetTimer() | Reset to default Timer. |
SetTimer(Func<float>) | Set a custom Timer. |