Class DestructibleBlock
Component for any destructible block.
Implements
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: BomberDogs.Level
Assembly: Assembly-CSharp.dll
Syntax
public class DestructibleBlock : MonoBehaviour, IDamageTaker
Fields
| Edit this page View SourceDestructingAnimationState
Declaration
[AnimatorStatesDropdown(0)]
[Tooltip("Animator state for the block destruction animation.")]
public string DestructingAnimationState
Field Value
| Type | Description |
|---|---|
| string |
animator
Declaration
public Animator animator
Field Value
| Type | Description |
|---|---|
| Animator |
Methods
| Edit this page View SourceSetDropProbabilities(float, List<ItemDropProbabilitySpec>)
The block spawner defines the drop probabilities here.
Declaration
public void SetDropProbabilities(float itemDropProbability, List<DestructibleBlock.ItemDropProbabilitySpec> itemsToBeDropped)
Parameters
| Type | Name | Description |
|---|---|---|
| float | itemDropProbability | |
| List<DestructibleBlock.ItemDropProbabilitySpec> | itemsToBeDropped |
TakeDamage(DamageEmissionDto)
When the block takes damage, it calls for its own destruction.
Declaration
public DamageResponseDto TakeDamage(DamageEmissionDto emission)
Parameters
| Type | Name | Description |
|---|---|---|
| DamageEmissionDto | emission |
Returns
| Type | Description |
|---|---|
| DamageResponseDto |