private void SetCameraPosition() { Vector3 vec = gameObject.transform.position; vec.y = GetCameraY(progressService.GetLastUnlockedLevel()); gameObject.transform.position = vec; }
private string GetStarsToUnlockTextForButton() { if (levelNumber - progressService.GetLastUnlockedLevel() == 1) { int count = progressService.GetStarsNeededForLevel(levelNumber) - progressService.StarsCountTotal; return(count.ToString()); } return(""); }