// Use this for initialization void Start() { GameObject gameControl = GameObject.FindGameObjectWithTag("GameController"); SaveDataController saveController = gameControl.GetComponent <SaveDataController>(); int currentStar = saveController.GetStar(this.stage, this.level); this.showStar(currentStar); }