Пример #1
0
 //==========================================================================
 /// <summary>
 /// Checks the dice go to next level for success or falilure.
 /// </summary>
 /// <param name="success"> State for Success.</param>
 /// <param name="fail">State for Fail.</param>
 //==========================================================================
 void CheckDiceGoToNextLevel(GameControl.State success, GameControl.State fail)
 {
     if (GameControl.control.diceresult == "success")
     {
         GameControl.control.diceresult = null;
         GameControl.control.mystate    = success;
     }
     else if (GameControl.control.diceresult == "fail")
     {
         GameControl.control.diceresult = null;
         GameControl.control.mystate    = fail;
     }
 }
Пример #2
0
 //==============================================================================
 /// <summary>
 /// Checks the find image to go to next level for success or falilure.
 /// </summary>
 /// <param name="success"> State for Success.</param>
 /// <param name="fail">State for Fail.</param>
 //==============================================================================
 void CheckFindImageToNextLevel(GameControl.State success, GameControl.State fail)
 {
     if (GameControl.control.findImageResult == "success")
     {
         GameControl.control.findImageResult = null;
         GameControl.control.mystate         = success;
     }
     else if (GameControl.control.findImageResult == "fail")
     {
         GameControl.control.findImageResult = null;
         GameControl.control.mystate         = fail;
     }
 }
Пример #3
0
 //==================================================
 /// <summary>
 /// Goes to a given State.
 /// </summary>
 /// <param name="next">The State to go.</param>
 //==================================================
 void GoNextLevel(GameControl.State next)
 {
     GameControl.control.mystate = next;
 }