Tanoda
ConveyorTrigger.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
public
class
ConveyorTrigger
: MonoBehaviour
6
{
7
private
void
OnTriggerEnter(Collider other)
8
{
9
if
(other.gameObject.GetComponentInParent<
ThrowableCanDisable
>())
10
{
11
ConveyorBeltManager
.
instance
.StopItem();
12
gameObject.SetActive(
false
);
13
}
14
}
15
}
ConveyorBeltManager
Definition:
ConveyorBeltManager.cs:17
ConveyorTrigger
Definition:
ConveyorTrigger.cs:6
GILES.pb_MonoBehaviourSingleton.instance
static T instance
Definition:
pb_MonoBehaviourSingleton.cs:28
ThrowableCanDisable
Definition:
ThrowableCanDisable.cs:19
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
ConveyorTrigger.cs
Generated by
1.9.3