Hello, all
I am sorry if this has already been answered, but I was wondering why do we have :
GameSession gameSession;
scoreText.text = gameSession.GetScore().ToString();
in ScoreDisplay script, but in Enemy script we use
FindObjectOfType().AddToScore(scoreValue);
Without assigning it to a variable as in both cases we are working with data that is returned from GameSession?
I am sorry if this seems like a stupid question and thanks in advance for the answer.