Class DestructibleBlock.ItemDropProbabilitySpec
This class defines the probability of an item being dropped.
Inherited Members
Namespace: BomberDogs.Level
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class DestructibleBlock.ItemDropProbabilitySpec
Fields
| Edit this page View Sourceitem
Item to be dropped
Declaration
public GameObject item
Field Value
| Type | Description |
|---|---|
| GameObject |
weight
Weight. The values of all items are summed, and those with higher values will have a greater probability of being spawned.
Declaration
[Tooltip("Weight. The values of all items are summed, and those with higher values will have a greater probability of being spawned.")]
[Range(0, 100)]
public float weight
Field Value
| Type | Description |
|---|---|
| float |