Class PlayerBombPassBehaviour
If the player has the BombPass powerup then this script will work by ignoring the bombs when collided with.
Inheritance
Object
Component
Behaviour
MonoBehaviour
PlayerBombPassBehaviour
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 PlayerBombPassBehaviour : PlayerBehaviourBase
Fields
| Edit this page View SourcebombsIgnoredWithBombPass
all bombs that are being ignored so that they can be reactivated when the player looses powerup
Declaration
[Header("Debug")]
[SerializeField]
protected List<Collider2D> bombsIgnoredWithBombPass
Field Value
| Type | Description |
|---|---|
| List<Collider2D> |
requirePowerup
Declaration
public bool requirePowerup
Field Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceOnCollisionEnter2D(Collision2D)
Declaration
public void OnCollisionEnter2D(Collision2D col)
Parameters
| Type | Name | Description |
|---|---|---|
| Collision2D | col |