soundvision/UnityProject/Assets/AzureKinectExamples/KinectDemos/ColliderDemo/Scripts/BallMover.cs

18 lines
290 B
C#
Raw Normal View History

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