WXMC/.svn/pristine/d1/d15d3e46fd1cb00da695e1805e2e25224fc5452c.svn-base
2024-12-04 16:18:46 +08:00

17 lines
306 B
Plaintext

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);
}
}
}