Пример #1
0
 private void CheckPlayerDied()
 {
     if (noOfhits > maxNoofhits)
     {
         if (CallOnlyOnceperGame)
         {
             Debug.Log("no of times runs");
             m_controExtraLife.setActiveGameOverPannel();
         }
         else if (!CallOnlyOnceperGame)
         {
             m_controExtraLife.setExtraLifePanel();
             m_gameStatus.SetExtralifeoption(true);
             CallOnlyOnceperGame = !CallOnlyOnceperGame;
             SetnofHitsDecrease();
         }
         //    m_gameStatus.setGameOverinfo(true);//Call Extra life pannel
         //after calling extra life panel you have if he clicked extra life pannel  you have to givechance to play game
     }
 }