Class PlayerDropBombBehaviour
Responsible for instantiating bombs when the player triggers the command. Manages the quantity and type of bombs that can be instantiated
Inheritance
Object
Component
Behaviour
MonoBehaviour
PlayerDropBombBehaviour
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.PlayerBehaviours
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerBehaviourCore))]
public class PlayerDropBombBehaviour : PlayerBehaviourBase
Fields
| Edit this page View SourcebombQuantity
Declaration
[Tooltip("Number of bombs that can be used at the same time")]
public int bombQuantity
Field Value
| Type | Description |
|---|---|
| int |
explosionSize
Declaration
[Tooltip("Size of explosion")]
public int explosionSize
Field Value
| Type | Description |
|---|---|
| int |
mountableBehaviour
Declaration
[Tooltip("Current mountable component")]
[SerializeField]
protected MountableBehaviourCore mountableBehaviour
Field Value
| Type | Description |
|---|---|
| MountableBehaviourCore |
whereCannotDropBombLayerMask
Declaration
[Tooltip("Layers where the character cannot drop bombs")]
[SerializeField]
protected LayerMask whereCannotDropBombLayerMask
Field Value
| Type | Description |
|---|---|
| LayerMask |
Methods
| Edit this page View SourceAddBombStack(List<Bomb>)
Add stack of remote bombs. This exists because the mountable inherit player remote bombs and vice versa. When the mount starts and the mountable dies
Declaration
public void AddBombStack(List<Bomb> bombs)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Bomb> | bombs |
ExtractBombStack()
Get bomb stack and clear origin. This is used to inherit bomb stack to mountable or vice versa.
Declaration
public List<Bomb> ExtractBombStack()
Returns
| Type | Description |
|---|---|
| List<Bomb> |