public void NextObstacle() { playerController.ScrollPlayer(-70, 0.5f); obstacleController.ScrollObject(-70, 0.5f); obstacleController.UnLoadCurrentObstacle(); obstacleController.UpdateCurrentObstacle(); StartCoroutine(LoadNextObstacle()); }