You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
189 B

using UnityEngine;
public class PlaySFXOnStart : MonoBehaviour {
public string sfx;
void Start () {
GlobalAudioPlayer.PlaySFXAtPosition (sfx, transform.position, transform);
}
}