常用方法
常用方法
常用方法
常用方法
public void AddScore(int scoreToAdd) { int currentScore = scoreValue.GetValue(); int updatedScore = currentScore + scoreToAdd; scoreValue.SetValue(updatedScore); if (updatedScore > limitForLevel) { GameFlowManager.NextLevel(); } }