private void CheckIfReachedGoal() { RaycastHit2D hit = Physics2D.Raycast(transform.position, Vector2.zero); if (hit.collider != null) { if (hit.collider.CompareTag("Goal")) { audioController.PlayLevelUp(); loadScene.StartTransition(); } else if (hit.collider.CompareTag("BadGoal")) { audioController.PlayLevelUp(); loadScene.StartBadTransition(1); } else if (hit.collider.CompareTag("BadGoal1")) { audioController.PlayLevelUp(); loadScene.StartBadTransition(2); } else if (hit.collider.CompareTag("BadGoal2")) { audioController.PlayLevelUp(); loadScene.StartBadTransition(3); } } else { _canMove = true; } }