logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HitStopChannel

    Feedback channel that implements hit-stop: briefly dips UnityEngine.Time.timeScale then restores the prior value. Handles HitStopEffect. Target-agnostic (time scale is global). Guards against fighting the pause system: if the game is paused when Play is called, the effect is skipped. On restore, only resets timeScale if nobody else changed it in the interim.

    Inheritance
    object
    HitStopChannel
    Implements
    IFeedbackChannel
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Feedback.Infrastructure.Channels
    Assembly: Serenity.UnityFeedback.Infrastructure.dll
    Syntax
    public class HitStopChannel : IFeedbackChannel

    Constructors

    HitStopChannel(IFeedbackRuntime, ILogService)

    Initializes a new HitStopChannel.

    Declaration
    public HitStopChannel(IFeedbackRuntime runtime, ILogService log)
    Parameters
    Type Name Description
    IFeedbackRuntime runtime

    Coroutine host used to run and cancel the restore timer.

    ILogService log

    Log service for diagnostic messages.

    Properties

    ChannelId

    Declaration
    public string ChannelId { get; }
    Property Value
    Type Description
    string

    Methods

    CanPlay(IFeedbackEffect)

    Declaration
    public bool CanPlay(IFeedbackEffect effect)
    Parameters
    Type Name Description
    IFeedbackEffect effect
    Returns
    Type Description
    bool

    Play(FeedbackTarget, IFeedbackEffect)

    Declaration
    public void Play(FeedbackTarget target, IFeedbackEffect effect)
    Parameters
    Type Name Description
    FeedbackTarget target
    IFeedbackEffect effect

    Stop(FeedbackTarget)

    Declaration
    public void Stop(FeedbackTarget target)
    Parameters
    Type Name Description
    FeedbackTarget target

    StopAll()

    Declaration
    public void StopAll()

    Implements

    IFeedbackChannel
    In this article
    © 2026 Serenity. All Rights Reserved