hi im tryinf to make it when a object with this script get destroyed i want it to add to another script that wil ad numbers to a script
System.Collections; using System.Collections.Generic; using UnityEngine; public class destroy : MonoBehaviour {
void OnMouseDown() {
Destroy (gameObject);
} }