public void onTitleClickCallBack(string button) { if (button == "Start") { sceneClickOp.loadLevel(0); } else if (button == "Quit") { Application.Quit(); } }
public void onLevelSelectClickCallBack(string button) { if (button == "StartLevel") { int level = transform.parent.GetChild(1).GetComponent <CardViewManager>().selectedLevel; Debug.Log("Starting Lv: " + level); sceneClickOp.loadLevel(level); } else if (button == "ReturnTitle") { sceneClickOp.loadTitleScene(); } }