⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class ShakeHandler

    Inheritance
    Object
    MonoBehaviour
    ShakeHandler
    CameraShake
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public abstract class ShakeHandler : MonoBehaviour

    Properties

    concussionMultiplier

    Declaration
    public float concussionMultiplier { get; set; }
    Property Value
    Type Description
    System.Single

    continuousMultiplier

    Declaration
    public float continuousMultiplier { get; set; }
    Property Value
    Type Description
    System.Single

    continuousShake

    Declaration
    public float continuousShake { get; set; }
    Property Value
    Type Description
    System.Single

    globalShake

    Declaration
    public static float globalShake { get; set; }
    Property Value
    Type Description
    System.Single

    Methods

    AddShaker(IShakeZone)

    Declaration
    public static void AddShaker(IShakeZone shaker)
    Parameters
    Type Name Description
    IShakeZone shaker

    Awake()

    Declaration
    protected virtual void Awake()

    DoShake(Single, Single, Boolean)

    Declaration
    protected abstract void DoShake(float strength, float duration, bool requiresGrounding)
    Parameters
    Type Name Description
    System.Single strength
    System.Single duration
    System.Boolean requiresGrounding

    DoShakeContinuous(Single)

    Declaration
    protected abstract void DoShakeContinuous(float strength)
    Parameters
    Type Name Description
    System.Single strength

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    RemoveShaker(IShakeZone)

    Declaration
    public static void RemoveShaker(IShakeZone shaker)
    Parameters
    Type Name Description
    IShakeZone shaker

    Shake(Single, Single, Boolean)

    Declaration
    public void Shake(float strength, float duration, bool requiresGrounding)
    Parameters
    Type Name Description
    System.Single strength
    System.Single duration
    System.Boolean requiresGrounding

    Shake(Vector3, Single, Single, Single, Single, Boolean)

    Declaration
    public static void Shake(Vector3 position, float innerRadius, float falloffDistance, float strength, float duration, bool requiresGrounding = false)
    Parameters
    Type Name Description
    Vector3 position
    System.Single innerRadius
    System.Single falloffDistance
    System.Single strength
    System.Single duration
    System.Boolean requiresGrounding

    TickShakeHandler()

    Declaration
    protected virtual void TickShakeHandler()
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX