24 lines
385 B
C#
24 lines
385 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
public class WorldspaceButton : MonoBehaviour
|
|
{
|
|
public UnityEvent OnClick;
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void Click(){
|
|
OnClick.Invoke();
|
|
}
|
|
}
|