Class AudioMimic
A singleton class that allows us to transfer one UnityEngine.AudioClip from an about to be hidden/destroyed gameobject and play it here instead. Limited to only 1 sound mimic at one time.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
AudioMimic
Namespace: AdrianMiasik.Components.Core
Assembly: Assembly-CSharp.dll
Syntax
public class AudioMimic : MonoBehaviour
Properties
| Improve this Doc View SourceInstance
Declaration
public static AudioMimic Instance { get; }
Property Value
Type | Description |
---|---|
AudioMimic |
Methods
| Improve this Doc View SourcePlaySound(AudioClip)
Declaration
public void PlaySound(AudioClip clipToMimic)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.AudioClip | clipToMimic |