using System;
using UnityEngine;

public class OvrObjAutoDestory : MonoBehaviour
{
	private void Update()
	{
		if (base.transform.position.y < this.m_fDestroyY)
		{
			if (this.m_goTarget == null)
			{
				this.m_goTarget = base.gameObject;
			}
			UnityEngine.Object.Destroy(this.m_goTarget);
		}
	}

	public GameObject m_goTarget;

	public float m_fDestroyY = -10f;
}
