ProjectDDD/Assets/External/Epic Toon FX/Scripts/ETFXPitchRandomizer.cs
2025-07-07 19:25:56 +09:00

17 lines
306 B (Stored with Git LFS)
C#

using UnityEngine;
using System.Collections;
namespace EpicToonFX
{
public class ETFXPitchRandomizer : MonoBehaviour
{
public float randomPercent = 10;
void Start ()
{
transform.GetComponent<AudioSource>().pitch *= 1 + Random.Range(-randomPercent / 100, randomPercent / 100);
}
}
}