18 lines
290 B
C#
18 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);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|