void Update() { if (transform.position.y < bottomY) { Destroy(this.gameObject); ApplePicker apScript = Camera.main.GetComponent <ApplePicker>(); apScript.fruitDestroyed(); } }