When enemy is killed
scoreValue = scoreValue + 100;
For UI elements, avoid putting them in Update(). I like to put them in LateUpdate().
When enemy is killed
scoreValue = scoreValue + 100;
For UI elements, avoid putting them in Update(). I like to put them in LateUpdate().