// ゲームオーバー画面表示 void DrawGameOver() { // Button表示 Button_Ranking.SetActive(true); Button_Retry.SetActive(true); Button_Logout.SetActive(true); GameOver.text = "GameOver"; }
// 初期化 void Start() { // スクリプト及びオブジェクト取得 Score = GameObject.Find("Text_Score").GetComponent <Text>(); HighScore = GameObject.Find("Text_HighScore").GetComponent <Text>(); GameOver = GameObject.Find("Text_GameOver").GetComponent <Text>(); TextTime = GameObject.Find("Text_Time").GetComponent <Text>(); Button_Ranking = GameObject.Find("Button_Ranking"); Button_Retry = GameObject.Find("Button_Retry"); Button_Logout = GameObject.Find("Button_Logout"); // 非表示 Button_Ranking.SetActive(false); Button_Retry.SetActive(false); Button_Logout.SetActive(false); // IsCallSave = false; nowScore = 0; Score.text = "Score: 0"; GameOver.text = ""; TextTime.text = "Time:" + QuickRanking.Instance.mRankingData.time;//string.Format("Time: {0:00}:{1:00}.{2:00}", time.min, time.sec, (time.msec * 0.1)); }