A pickable star, that triggers a TopDownEngineStarEvent if picked It's up to you to implement something that will handle that event. You can look at the DeadlineStar and DeadlineProgressManager for examples of that.
More...
|
| int | StarID |
| | the ID of this star, used by the progress manager to know which one got unlocked
|
| MMFeedbacks | PickedMMFeedbacks |
| | A feedback to play when the object gets picked.
|
| bool | DisableColliderOnPick = false |
| | if this is true, the picker's collider will be disabled on pick
|
| bool | DisableObjectOnPick = true |
| | if this is set to true, the object will be disabled when picked
|
| float | DisableDelay = 0f |
| | the duration (in seconds) after which to disable the object, instant if 0
|
| bool | DisableModelOnPick = false |
| | if this is set to true, the object will be disabled when picked
|
| bool | DisableTargetObjectOnPick = false |
| | if this is set to true, the target object will be disabled when picked
|
| GameObject | TargetObjectToDisable |
| | the object to disable on pick if DisableTargetObjectOnPick is true
|
| float | TargetObjectDisableDelay = 1f |
| | the time in seconds before disabling the target if DisableTargetObjectOnPick is true
|
| GameObject | Model |
| | the visual representation of this picker
|
| bool | RequireCharacterComponent = true |
| | if this is true, this pickable item will only be pickable by objects with a Character component
|
| bool | RequirePlayerType = true |
| | if this is true, this pickable item will only be pickable by objects with a Character component of type player
|
A pickable star, that triggers a TopDownEngineStarEvent if picked It's up to you to implement something that will handle that event. You can look at the DeadlineStar and DeadlineProgressManager for examples of that.
◆ Pick()
| override void MoreMountains.TopDownEngine.Star.Pick |
( |
GameObject | picker | ) |
|
|
protectedvirtual |
◆ StarID
| int MoreMountains.TopDownEngine.Star.StarID |
the ID of this star, used by the progress manager to know which one got unlocked
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Items/Star.cs