mirror of
https://github.com/ConjureETS/OuijaMTLGJ2016.git
synced 2026-03-24 18:21:07 +00:00
27 lines
348 B
C#
27 lines
348 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class DragSound : MonoBehaviour
|
|
{
|
|
public static AudioSource drag;
|
|
|
|
void Awake()
|
|
{
|
|
drag = GetComponent<AudioSource>();
|
|
}
|
|
|
|
public void Start()
|
|
{
|
|
PlayDrag();
|
|
}
|
|
|
|
public static void PlayDrag()
|
|
{
|
|
drag.Play();
|
|
}
|
|
public static void StopDrag()
|
|
{
|
|
drag.Stop();
|
|
}
|
|
}
|