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