关卡1流程实现(测试版)
This commit is contained in:
19
Assets/Gameplay/Scripts/Frist/PianoInteractable.cs
Normal file
19
Assets/Gameplay/Scripts/Frist/PianoInteractable.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user