阶段性完成
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace SciFiArsenal
|
||||
{
|
||||
|
||||
public class SciFiPitchRandomizer : MonoBehaviour
|
||||
{
|
||||
|
||||
public float randomPercent = 10;
|
||||
|
||||
void Start ()
|
||||
{
|
||||
transform.GetComponent<AudioSource>().pitch *= 1 + Random.Range(-randomPercent / 100, randomPercent / 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user