12 lines
290 B
C#
12 lines
290 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(Collider2D))]
|
|
public class GolfBall : MonoBehaviour
|
|
{
|
|
void OnCollisionEnter2D(Collision2D other){
|
|
AudioManager.DropSfx(other.relativeVelocity.magnitude);
|
|
}
|
|
}
|