示例#1
0
    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;
        }
    }
示例#2
0
 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;
 }