bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/AudioFX.cs

37 lines
441 B
C#
Raw Permalink Normal View History

2024-02-24 22:40:44 -05:00
using UnityEngine;
public class AudioFX : MonoBehaviour
{
public enum FXType
{
Preprocess = 0,
Continuous = 1
}
[SerializeField]
protected FXType type;
public virtual void Awake()
{
if (type == FXType.Preprocess)
{
ProcessAudio();
}
}
public virtual void Update()
{
if (type == FXType.Continuous)
{
ProcessAudio();
}
}
protected virtual void ProcessAudio()
{
if (!(base.audio == null))
{
}
}
}