forked from cgvr/DeltaVR
deltavr multiplayer 2.0
This commit is contained in:
17
Assets/_PROJECT/Scripts/PhysButton.cs
Normal file
17
Assets/_PROJECT/Scripts/PhysButton.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TMPro;
|
||||
|
||||
public class PhysButton : MonoBehaviour
|
||||
{
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if(other.tag == "MenuHand")
|
||||
{
|
||||
GetComponent<Button>().onClick.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user