16 lines
282 B
C#
16 lines
282 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using Mirror;
|
||
|
using UnityEngine.Events;
|
||
|
|
||
|
public class Button : MonoBehaviour, IInteractable
|
||
|
{
|
||
|
public UnityEvent OnClickEvent;
|
||
|
|
||
|
public void Interact()
|
||
|
{
|
||
|
OnClickEvent.Invoke();
|
||
|
}
|
||
|
}
|