19 lines
361 B
C#
19 lines
361 B
C#
using UnityEngine;
|
|
|
|
public class PianoInteractable : MonoBehaviour, IInteractable
|
|
{
|
|
public void OnEnterInteractionRange()
|
|
{
|
|
Debug.Log("OnEnterInteractionRange");
|
|
}
|
|
|
|
public void OnExitInteractionRange()
|
|
{
|
|
Debug.Log("OnExitInteractionRange");
|
|
}
|
|
|
|
public void OnInteract()
|
|
{
|
|
MusicGame.instance.Play();
|
|
}
|
|
} |