53c1b2d7b5
Bought the asset to test with
17 lines
290 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|