コード例 #1
0
        public void SetClock(int hour)
        {
            string clockstring = "現在時刻は";

            if (hour < 10)
            {
                clockstring += "0" + hour + ":00";
            }
            else
            {
                clockstring += hour + ":00";
            }
            Debug.Log(clockstring);
            textClock.text = clockstring;
            state.DoClock(this, hour);
        }