Unity is saying that something is going wrong in the void update()
any ideas as to what this may be?
I have all the variables defined below but Unity says that some object reference is not set to an instance of an object
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameStatus : MonoBehaviour
{
public Text PointsCounter;
public int FightPoints = 0;
public int FightDamage = 1;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
PointsCounter.text = "Points: " + FightPoints;
}
private void Awake()
{
DontDestroyOnLoad(gameObject);
}
}