Exemplo n.º 1
0
 public void onTitleClickCallBack(string button)
 {
     if (button == "Start")
     {
         sceneClickOp.loadLevel(0);
     }
     else if (button == "Quit")
     {
         Application.Quit();
     }
 }
Exemplo n.º 2
0
 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();
     }
 }