private void Start() { //Making Sure All the States are false during start of the game GameOver_panel(false); Winning_panel(false); //Game_Over Condition Replay_Button.SetActive(true); Next_button.SetActive(false); }
//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; } }