Tanoda
ConveyorTrigger.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class ConveyorTrigger : MonoBehaviour
6{
7 private void OnTriggerEnter(Collider other)
8 {
9 if (other.gameObject.GetComponentInParent<ThrowableCanDisable>())
10 {
12 gameObject.SetActive(false);
13 }
14 }
15}