public void SavingScore(int level, int star) { SaveDataController saveController = gameObject.GetComponent <SaveDataController>(); saveController.SaveStarResult(1, level, star); saveController.unlockStage(1, level + 1); }