Files
Slendytubbies-VR/Assets/Scripts/Orientation/UnleasherButton.cs
T
2026-10-11 20:26:48 +02:00

17 lines
371 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
public class UnleasherButton : MonoBehaviour
{
public TinkyUnleashingSequence sequence;
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player Hand") || other.gameObject.layer == 3)
sequence.Play();
}
}