Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    Class Egg

    Component for the eggs from which mountables hatch.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    Egg
    Implements
    IDamageTaker
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type, bool)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>(bool)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(string)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: BomberDogs.Level
    Assembly: Assembly-CSharp.dll
    Syntax
    public class Egg : MonoBehaviour, IDamageTaker

    Fields

    | Edit this page View Source

    DestructionEffectPrefab

    Prefab for destruction effect.

    Declaration
    [Tooltip("Prefab for destruction effect")]
    public GameObject DestructionEffectPrefab
    Field Value
    Type Description
    GameObject
    | Edit this page View Source

    EggAnimator

    Animator component

    Declaration
    public Animator EggAnimator
    Field Value
    Type Description
    Animator
    | Edit this page View Source

    EggCollider

    Egg collider.

    Declaration
    public Collider2D EggCollider
    Field Value
    Type Description
    Collider2D
    | Edit this page View Source

    EggSpriteRenderer

    Egg sprite renderer

    Declaration
    public SpriteRenderer EggSpriteRenderer
    Field Value
    Type Description
    SpriteRenderer
    | Edit this page View Source

    FlipX

    If the sprite renderer is flipped use this to invert horizontal direction

    Declaration
    public bool FlipX
    Field Value
    Type Description
    bool
    | Edit this page View Source

    HitboxCollider

    hitbox collider

    Declaration
    public Collider2D HitboxCollider
    Field Value
    Type Description
    Collider2D
    | Edit this page View Source

    IdleAnimatorState

    Animator state for Idle animation

    Declaration
    [AnimatorStatesDropdown(0)]
    public string IdleAnimatorState
    Field Value
    Type Description
    string
    | Edit this page View Source

    OnTrailDownAnimatorState

    Animator state for trail down animation

    Declaration
    [AnimatorStatesDropdown(0)]
    public string OnTrailDownAnimatorState
    Field Value
    Type Description
    string
    | Edit this page View Source

    OnTrailRightAnimatorState

    Animator state for trail right animation

    Declaration
    [AnimatorStatesDropdown(0)]
    public string OnTrailRightAnimatorState
    Field Value
    Type Description
    string
    | Edit this page View Source

    OnTrailUpAnimatorState

    Animator state for trail up animation

    Declaration
    [AnimatorStatesDropdown(0)]
    public string OnTrailUpAnimatorState
    Field Value
    Type Description
    string
    | Edit this page View Source

    RidableAnimalGameObject

    Animal that will hatch from the egg. Must be a MountableBehaviourCore

    Declaration
    [Tooltip("Animal that will hatch from the egg. Must be a MountableBehaviourCore")]
    public MountableBehaviourCore RidableAnimalGameObject
    Field Value
    Type Description
    MountableBehaviourCore
    | Edit this page View Source

    RidableInstantiationDelay

    Delay to instantiate ridabble. This is for animation timing purposes.

    Declaration
    [Tooltip("Delay to instantiate ridabble. This is for animation timing purposes.")]
    public float RidableInstantiationDelay
    Field Value
    Type Description
    float

    Properties

    | Edit this page View Source

    Dying

    If the egg is already dying. This is necessary so that it does not trigger the dying animation or event twice.

    Declaration
    public bool Dying { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    AddImunityTo(IDamageEmitter)

    Triggers immunity when the egg is instantiated. This is necessary because the egg spawns in contact with fire, so it needs immunity to that fire.

    Declaration
    public void AddImunityTo(IDamageEmitter emitter)
    Parameters
    Type Name Description
    IDamageEmitter emitter
    | Edit this page View Source

    BornNow(Action<GameObject>)

    Create mountable animal and interacts with MountableBehaviourCore to perform the mounting process.

    Declaration
    public void BornNow(Action<GameObject> callback)
    Parameters
    Type Name Description
    Action<GameObject> callback

    Call after animal be created

    | Edit this page View Source

    SetToTrailMode(bool)

    When the egg enters the player's trail, it can no longer be collected by the player itself.

    Declaration
    public void SetToTrailMode(bool on)
    Parameters
    Type Name Description
    bool on
    | Edit this page View Source

    TakeDamage(DamageEmissionDto)

    If it takes damage, it will be destroyed unless it is already in the process of hatching.

    Declaration
    public DamageResponseDto TakeDamage(DamageEmissionDto emission)
    Parameters
    Type Name Description
    DamageEmissionDto emission
    Returns
    Type Description
    DamageResponseDto
    | Edit this page View Source

    cleanupOnDieEvent()

    Cleanup ondie event

    Declaration
    public void cleanupOnDieEvent()

    Events

    | Edit this page View Source

    onCollideWithAnotherEgg

    This triggers the Egg Trail Behavior component to cut off a chain of eggs if one in the middle dies.

    Declaration
    public event Action<Egg> onCollideWithAnotherEgg
    Event Type
    Type Description
    Action<Egg>
    | Edit this page View Source

    onDies

    Event when the egg dies.

    Declaration
    public event Action<Egg> onDies
    Event Type
    Type Description
    Action<Egg>

    Implements

    IDamageTaker

    Extension Methods

    MonoBehaviourExtensions.DelayedCall(MonoBehaviour, Action, float)
    MonoBehaviourExtensions.DelayedCallUnscaled(MonoBehaviour, Action, float)
    MonoBehaviourExtensions.LoopForAWile(MonoBehaviour, Action<float>, float, Action, bool)
    MonoBehaviourExtensions.LoopWhileReturnTrue(MonoBehaviour, Func<bool>, Action, bool)
    • Edit this page
    • View Source
    In this article
    Back to top