using UnityEngine;
using System.Collections;
public class CoinCollect : MonoBehaviour {
public static int score = 100;
void OnMouseDown() {
score += 20;
Destroy(gameObject);
}
}
When i try to use this code with my game, this error comes up