Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    Class MountableBehaviourCore

    Variant of PlayerBehaviourCore for mountables. Extend character to became a montable

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    PlayerBehaviourCore
    MountableBehaviourCore
    Implements
    IPlayerBehaviourCore
    Inherited Members
    PlayerBehaviourCore.disableControls
    PlayerBehaviourCore.debugAnimatorCrossFades
    PlayerBehaviourCore.input
    PlayerBehaviourCore.bodyAnimator
    PlayerBehaviourCore._rigidbody
    PlayerBehaviourCore.bodySpriteRenderer
    PlayerBehaviourCore.bodyCollider
    PlayerBehaviourCore.powerUps
    PlayerBehaviourCore.playerNumber
    PlayerBehaviourCore.onRemovePowerUp
    PlayerBehaviourCore.onAddPowerUp
    PlayerBehaviourCore.OnTriggerEnter2D(Collider2D)
    PlayerBehaviourCore.RemovePowerup(EPowerUp)
    PlayerBehaviourCore.SetPowerUps(List<EPowerUp>)
    PlayerBehaviourCore.IsConsumablePowerup(EPowerUp)
    PlayerBehaviourCore.InvokeOnAddPowerup(EPowerUp)
    PlayerBehaviourCore.SetParent(Transform)
    PlayerBehaviourCore.GetSpriteRenderer()
    PlayerBehaviourCore.SetPlayerNumber(int)
    PlayerBehaviourCore.CrossFade(string, float)
    PlayerBehaviourCore.DisableControls(bool)
    PlayerBehaviourCore.ControlIsDisabled()
    PlayerBehaviourCore.GetAnimator()
    PlayerBehaviourCore.GetRigidbody()
    PlayerBehaviourCore.GetCollider()
    PlayerBehaviourCore.GetInput()
    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.PlayerBehaviours
    Assembly: Assembly-CSharp.dll
    Syntax
    [RequireComponent(typeof(PlayerWalkBehaviour))]
    public class MountableBehaviourCore : PlayerBehaviourCore, IPlayerBehaviourCore

    Fields

    | Edit this page View Source

    mountOffsetFacingDown

    Declaration
    [Tooltip("Offset of the position of the player mounted on this animal when facing down. Use z axis to change render order")]
    public Vector3 mountOffsetFacingDown
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    mountOffsetFacingRight

    Declaration
    [Header("Mount Offsets")]
    [Tooltip("Offset of the position of the player mounted on this animal when facing right or left. Use z axis to change render order")]
    public Vector3 mountOffsetFacingRight
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    mountOffsetFacingUp

    Declaration
    [Tooltip("Offset of the position of the player mounted on this animal when facing up. Use z axis to change render order")]
    public Vector3 mountOffsetFacingUp
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    prefab

    Declaration
    [SerializeField]
    [Tooltip("Prefab used to instantiate same mountable again in another level or on savegame load.")]
    protected GameObject prefab
    Field Value
    Type Description
    GameObject
    | Edit this page View Source

    rideOscillationOffset

    Declaration
    public float rideOscillationOffset
    Field Value
    Type Description
    float
    | Edit this page View Source

    riderMountComponent

    Declaration
    [Header("Debug")]
    [SerializeField]
    [Tooltip("Rider mount component")]
    protected PlayerMountBehaviour riderMountComponent
    Field Value
    Type Description
    PlayerMountBehaviour
    | Edit this page View Source

    walkBehaviour

    Declaration
    [SerializeField]
    [Tooltip("Player walk component")]
    protected IPlayerWalkBehaviour walkBehaviour
    Field Value
    Type Description
    IPlayerWalkBehaviour

    Properties

    | Edit this page View Source

    rider

    Rider character, that mount the animal

    Declaration
    public IPlayerBehaviourCore rider { get; }
    Property Value
    Type Description
    IPlayerBehaviourCore

    Methods

    | Edit this page View Source

    AddOrConsumePowerUp(EPowerUp)

    If it is a consumed powerup, it consumes it, if it is storable, it stores it.

    Declaration
    public override void AddOrConsumePowerUp(EPowerUp powerUp)
    Parameters
    Type Name Description
    EPowerUp powerUp
    Overrides
    PlayerBehaviourCore.AddOrConsumePowerUp(EPowerUp)
    | Edit this page View Source

    ConsumePowerup(EPowerUp)

    Consume powerup if consumable

    Declaration
    public override bool ConsumePowerup(EPowerUp powerUp)
    Parameters
    Type Name Description
    EPowerUp powerUp
    Returns
    Type Description
    bool

    If consumed, it returns true.

    Overrides
    PlayerBehaviourCore.ConsumePowerup(EPowerUp)
    | Edit this page View Source

    GetInvertFlip()

    Get invert flip for player sync.

    Declaration
    public bool GetInvertFlip()
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetMountOffset()

    Get the mount offset. This is used to update player position above animal.

    Declaration
    public Vector3 GetMountOffset()
    Returns
    Type Description
    Vector3

    Offset

    | Edit this page View Source

    GetPowerUps()

    Get player and mountable powerups

    Declaration
    public override List<EPowerUp> GetPowerUps()
    Returns
    Type Description
    List<EPowerUp>
    Overrides
    PlayerBehaviourCore.GetPowerUps()
    | Edit this page View Source

    GetPrefab()

    Get prefab used to instantiate this mountable

    Declaration
    public GameObject GetPrefab()
    Returns
    Type Description
    GameObject
    | Edit this page View Source

    GetRiderMountBehaviour()

    Get Rider mount behaviour for celebration animation sync.

    Declaration
    public PlayerMountBehaviour GetRiderMountBehaviour()
    Returns
    Type Description
    PlayerMountBehaviour
    | Edit this page View Source

    GetSpriteColor()

    Used by MountBehaviour to get mountable color for player sync. With this the blink is is propagated to player as well.

    Declaration
    public Color GetSpriteColor()
    Returns
    Type Description
    Color
    | Edit this page View Source

    GetSpriteRendererFlip()

    Used to get mountable flipping for player sybc

    Declaration
    public bool GetSpriteRendererFlip()
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetSpriteSortingOrder()

    Used by MountBehaviour to sync player and mountable sorting order

    Declaration
    public int GetSpriteSortingOrder()
    Returns
    Type Description
    int

    sorting order

    | Edit this page View Source

    GetWalkDirection()

    used to get mountable direction for sync player.

    Declaration
    public EWalkDirection GetWalkDirection()
    Returns
    Type Description
    EWalkDirection
    | Edit this page View Source

    OnEnterInTeleportPortal()

    Event that triggers when portais entered

    Declaration
    public void OnEnterInTeleportPortal()
    | Edit this page View Source

    SetInput(PlayerInputBase)

    Set the input. Used when player is mounting

    Declaration
    public void SetInput(PlayerInputBase input)
    Parameters
    Type Name Description
    PlayerInputBase input
    | Edit this page View Source

    SetPrefab(GameObject)

    Get prefab used to instantiate this mountable. Will be used to be instantiated on next level

    Declaration
    public void SetPrefab(GameObject prefab)
    Parameters
    Type Name Description
    GameObject prefab
    | Edit this page View Source

    SetRider(IPlayerBehaviourCore)

    Set the rider. Used to set rider when is mounting

    Declaration
    public void SetRider(IPlayerBehaviourCore rider)
    Parameters
    Type Name Description
    IPlayerBehaviourCore rider
    | Edit this page View Source

    Update()

    Declaration
    public void Update()

    Implements

    IPlayerBehaviourCore

    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