Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class SoundSpeed : MonoBehaviour {
  5.  
  6. public float startingPitch = 0.8f;
  7. [SerializeField] private AudioSource audio;
  8.  
  9. void Start()
  10. {
  11. audio = GetComponent<AudioSource>();
  12. audio.pitch = startingPitch;
  13. }
  14.  
  15. // Update is called once per frame
  16. void Update () {
  17.  
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement