Пример #1
0
 public void GameOver_panel(bool istrue_Check)
 {
     Game_Over_Panel.SetActive(istrue_Check);
     Winning_Text.SetActive(!istrue_Check);
     Losing_Text.SetActive(istrue_Check);
     High_obj.SetActive(istrue_Check);
     //disableing the controls
     //Pausing the Game
     if (istrue_Check == true)
     {
         Time.timeScale = 0;
         Player._Instance.Starting_Phase = false;
     }
     if (istrue_Check == false)
     {
         Time.timeScale = 1;
     }
 }
Пример #2
0
    //this method gives Winning Condition to the game
    public void Winning_panel(bool istrue)
    {
        Winning_Panel.SetActive(istrue);
        Next_button.SetActive(istrue);
        Replay_Button.SetActive(!istrue);
        Winning_Text.SetActive(istrue);
        Losing_Text.SetActive(!istrue);
        High_obj.SetActive(!istrue);

        if (istrue == true)
        {
            Time.timeScale = 0;
            Player._Instance.Starting_Phase         = false;
            Player._Instance.disable_movement_start = false;
        }
        if (istrue == false)
        {
            Time.timeScale = 1;
        }
    }