public static void EndGameUI(GameObject SelfPlayer, GameObject block, GameObject SurvivePanel) { status = CurruntPanel.Survive; Time.timeScale = 0; block.SetActive(false); SelfPlayer.SetActive(false); SurvivePanel.transform.localScale = new Vector3(1, 1, 1); }
public static void ShowSurvivePanel(GameObject SurvivePanel) { if (PlayerPrefs.GetString("Connect") == "Fail") { SurvivePanel.transform.localScale = new Vector3(1, 0, 0); } else { status = CurruntPanel.Survive; SurvivePanel.transform.localScale = new Vector3(1, 1, 1); SurvivePanel.GetComponentInChildren <ProgressOficial>().Speed = 40; } }