Search Results for

    Show / Hide Table of Contents

    Class ConditionalAction

    Conditional action that can be performed if a given set of conditions are met.

    Inheritance
    Object
    ConditionalAction
    JumpAction
    Namespace: nickmaltbie.OpenKCC.Character.Action
    Assembly: cs.temp.dll.dll
    Syntax
    public class ConditionalAction

    Fields

    condition

    Condition for configuring this conditional action.

    Declaration
    protected Func<bool> condition
    Field Value
    Type Description
    Func<Boolean>

    coyoteTime

    Buffer time after which conditions are no longer met that this action can still be performed.

    Declaration
    public float coyoteTime
    Field Value
    Type Description
    Single

    unityService

    Unity service for managing time inputs.

    Declaration
    public IUnityService unityService
    Field Value
    Type Description
    IUnityService

    Properties

    CanPerform

    Can this action be performed.

    Declaration
    public bool CanPerform { get; }
    Property Value
    Type Description
    Boolean

    Methods

    SetCondition(Func<Boolean>)

    Configure the condition for this action.

    Declaration
    public void SetCondition(Func<bool> condition)
    Parameters
    Type Name Description
    Func<Boolean> condition

    Condition for the action.

    Update()

    Add delta time to update the conditional action state.

    Declaration
    public virtual void Update()
    In This Article
    Back to top OpenKCC Documentation