Hi i have got sth like this
void OnGUI()
{
if (end == 1) {
NGUITools.SetActive(PanelWon, true);
score ++;
Time.timeScale = 0.0f
}
}
When the “PanelWon” is active it adds 1 score every second (frame), i want to add just 1 score so when i won i have got +1 score. Another thing, when i won the same game again one star score stays there so it doesn’t add it again and again when i play (win) the same level every time.