when im using this script with my UI Text to count my objects…
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class savakt : MonoBehaviour {
public Text countText;
private int count;
void Start ()
{
count = 0;
SetCountText ();
}
void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag (“PickUp”))
{
other.gameObject.SetActive (false);
count = count + 1;
SetCountText();
}
}
void SetCountText ()
{
countText.text = "Count: " + count.ToString ();
}
}
i recive this error ( references runtime script in scene file. Fixing! )
HELP PLEASE