PinchRandomizer.cs 288 B

1234567891011121314
  1. using UnityEngine;
  2. using System.Collections;
  3. public class PinchRandomizer : MonoBehaviour
  4. {
  5. public float m_PinchRandom;
  6. private AudioSource m_Source;
  7. void Start ()
  8. {
  9. m_Source = GetComponent<AudioSource>();
  10. m_Source.pitch += Random.Range(-m_PinchRandom,m_PinchRandom);
  11. }
  12. }