Esempio n. 1
0
    private void Update()
    {
        if (!flowTime)
        {
            return;
        }

        time += Time.deltaTime;                                             // 실제 경과 시간을 time값에 넣는다
        if (time > onedayTime)                                              // 만약 하루로 설정된 시간이 지나면
        {
            day++;                                                          // 날자가 지나고
            time = 0;                                                       // 시간은 초기화되고
            PlayerPrefs.SetInt(saveDay, day);
            cmd.TreeGrowPerDay();                                           // 나무와 풀이 자란다
        }
        CompareTimeZone();                                                  // 현재 시간이 어느시간대인지 확인한다

        SmallRt.rotation = Quaternion.Euler(0, 0, time * 360 / onedayTime); //작은시계가 돌아감

        if (!BigTimerObject.activeSelf)
        {
            return;
        }

        BigRtView();
    }