Beispiel #1
0
	private void OnTriggerEnter2D(Collider2D collider2D)
	{
		if (collider2D.gameObject.tag == "ClearPoint")
		{
			isClear = true;
			GiftyGameController.IsClear();
		}
	}
    void ShowHiscore()
    {
        int[]      moneyHiscore = GiftyGameController.GetMoneyHiscore();
        TimeSpan[] timeHiscore  = GiftyGameController.GetTimeHiscore();

        HiscoreTimeLabel.text  = "";
        HiscoreMoneyLabel.text = "";

        for (int i = 0; i < 3; i++)
        {
            HiscoreTimeLabel.text  += timeHiscore[i].Minutes.ToString("00") + ":" + timeHiscore[i].Seconds.ToString("00") + "." + timeHiscore[i].Milliseconds.ToString("000") + "\n";
            HiscoreMoneyLabel.text += string.Format("{0:#,0}円", moneyHiscore[i]) + "\n";
        }
    }