Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    Class PlayerInputBaseExtensions

    Several extension methods that allow you to iterate over lists of inputs instead of individual inputs. If, for example, you want the joystick and keyboard to receive input from player 1, you should use these extension methods.

    Inheritance
    object
    PlayerInputBaseExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: BomberDogs.Extensions
    Assembly: Assembly-CSharp.dll
    Syntax
    public static class PlayerInputBaseExtensions

    Methods

    | Edit this page View Source

    GetAxis(List<PlayerInputBase>)

    Read all Inputs and get axis value

    Declaration
    public static Vector2 GetAxis(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    Vector2

    Current horizontal and vertical axis value

    | Edit this page View Source

    GetBackDown(List<PlayerInputBase>)

    Read all Inputs and detect if the Back button is pressed

    Declaration
    public static bool GetBackDown(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    bool

    True when back is pressed

    | Edit this page View Source

    GetDropBombDown(List<PlayerInputBase>)

    Read all Inputs and detect if the DropBomb button is pressed

    Declaration
    public static bool GetDropBombDown(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    bool

    True when DropBomb is pressed

    | Edit this page View Source

    GetHorizontalAxisDown(List<PlayerInputBase>)

    Read all Inputs and detect if horizontal axis is pressed

    Declaration
    public static bool GetHorizontalAxisDown(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    bool

    True when horizontal axis is pressed

    | Edit this page View Source

    GetStartDown(List<PlayerInputBase>)

    Read all Inputs and detect if start button is pressed

    Declaration
    public static bool GetStartDown(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    bool

    True when start is pressed

    | Edit this page View Source

    GetVerticalAxisDown(List<PlayerInputBase>)

    Read all Inputs and detect if vertical axis is pressed

    Declaration
    public static bool GetVerticalAxisDown(this List<PlayerInputBase> inputs)
    Parameters
    Type Name Description
    List<PlayerInputBase> inputs

    List of inputs

    Returns
    Type Description
    bool

    True when vertical axis is pressed

    • Edit this page
    • View Source
    In this article
    Back to top