private void OnNextStage() { switch (_currentStage) { case Stage.Nickname: if (NickNameText.text.Trim().Length == 0) { DisplayNicknameError("please enter a nickname"); } else if (!_profanityFilter.IsClean(NickNameText.text)) { DisplayNicknameError(_profanityResponses [new System.Random().Next(_profanityResponses.Length - 1)]); } else { fadingOut = true; _fadeOutFinish = MoveToVehicleSelection; } break; case Stage.Vehicle: fadingOut = true; _fadeOutFinish = MoveToConnecting; break; } }