// Update is called once per frame void Update() { currentObj = GetComponent <ObjectiveSC>().currentObjective; potentialScore.text = currentObj.maxScore.ToString(); updateEndScore(); }
public void nextObjective() { if (completedObjectives <= objectives.Count) { currentObjective = objectives[completedObjectives]; currentObjective.maxScore = 1000; stop = false; objectiveText.text = currentObjective.task; possibleScoreText.text = currentObjective.maxScore.ToString(); } }
// Start is called before the first frame update void Start() { currentObj = GetComponent <ObjectiveSC>().currentObjective; characterScore.text = character.Score.Amount.ToString(); }