void Update() { if (roundupMode) { if (timedRoundup) { //nothing to do } else { //check to see if goal reached if (score.getPoints() >= goal) { //PLAYER HAS REACHED GOAL, THEY WIN! Debug.Log(gameObject.name + " has won the roundup!"); winner = true; } } } //ACCOUNTING FOR WEIRD PARALLAX ORDER BEHAVIOR if (transform.position.y < 0) { GetComponent <SpriteRenderer>().sortingOrder = Mathf.RoundToInt(transform.position.y * 100f) * -1; } Move(movementInput); }