using UnityEngine; using System.Collections; namespace com.rfilkov.components { public class EggMover : MonoBehaviour { void Awake() { //GetComponent().AddForce(new Vector3(0, -10f, 0), ForceMode.Force); } void Update() { if (transform.position.y < -10) { Destroy(gameObject); } } } }