SoundComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct SoundComponent : IComponent

Sound component which will be immediately played and destroyed.

Implements: IComponent

⭐ Constructors

public SoundComponent()
public SoundComponent(SoundEventId sound, bool destroyEntity)

Parameters
sound SoundEventId
destroyEntity bool

⭐ Properties

DestroyEntity

public readonly bool DestroyEntity;

Returns
bool

Sound

public readonly T? Sound;

Returns
T?