public void SetStar(StarTypes starType, int value) { if (starType == StarTypes.Collection) CollectStar = value; else if (starType == StarTypes.Death) DeathStar = value; else TimerStar = value; }