예제 #1
0
 public void OnOKButtonClick()
 {
     if (taskLevel == 1)
     {
         if (taskCount_baby < 10)
         {
             tween.PlayReverse();
             manager.UIisShowing = false;
         }
         else
         {
             isInTask = false;
             taskLevel++;
             ShowMessage();
             information.CoinAdd(600);
             taskCount_baby = 0;
         }
     }
     else if (taskLevel == 2)
     {
         if (taskCount_normal < 5)
         {
             tween.PlayReverse();
             manager.UIisShowing = false;
         }
         else
         {
             isInTask = false;
             taskLevel++;
             ShowMessage();
             information.CoinAdd(1500);
             taskCount_normal = 0;
         }
     }
     else if (taskLevel == 3)
     {
         if (taskCount_boss < 1)
         {
             tween.PlayReverse();
             manager.UIisShowing = false;
         }
         else
         {
             isInTask = false;
             taskLevel++;
             ShowMessage();
             information.CoinAdd(5000);
             taskCount_boss = 0;
         }
     }
 }