soundvision/UnityProject/Assets/AzureKinectExamples/KinectDemos/ColliderDemo/Scripts/BallMover.cs
max 53c1b2d7b5 Azure Kinect Demos
Bought the asset to test with
2019-10-26 11:04:12 +02:00

17 lines
290 B
C#

using UnityEngine;
using System.Collections;
namespace com.rfilkov.components
{
public class BallMover : MonoBehaviour
{
void Update()
{
if (transform.position.y < -2f)
{
Destroy(gameObject);
}
}
}
}