I need a script that adds 1 to my score when a destroy script is triggered. This is my destory script. using UnityEngine;
using System.Collections;
public class DestroyScript : MonoBehaviour
{
public GameObject Explosion;
void OnTriggerEnter (Collider Other)
{
if(Other.tag == "Player")
{
Instantiate (Explosion,transform.position, transform.rotation);
Destroy(gameObject);
}
}
}
strong text