public void refreshLevel() { GameObject currentLevel = getCurrentLevel(); if (currentLevel) { mouseClickHandlerScript.refreshTileDict(); ballControllerScript.SetPosition(currentLevel.transform.Find("BallStart").gameObject.transform.position); hole.transform.position = currentLevel.transform.Find("HolePosition").gameObject.transform.position; } }
public void refreshLevel() { mouseClickHandlerScript.refreshTileDict(); ball.transform.position = getCurrentLevel().transform.Find("BallStart").gameObject.transform.position; hole.transform.position = getCurrentLevel().transform.Find("HolePosition").gameObject.transform.position; }