NullReferenceException: Object reference not set to an instance of an object
ammoDisplayerHub.Update () (at Assets/Scripts/ammoDisplayerHub.js:9)
Is the Error!
And
#pragma strict
import UnityEngine.UI;
var ammoCounter : Text;
var ammoCount : int = 0;
function Start ()
{
//ammoCounter = GetComponent.<Text>().ammoCounter;
}
function Update ()
{
ammoCounter.text
}
function setAmmo ()
{
Debug.Log("Yup!");
}
is the coding