コード例 #1
0
 public void tick()
 {
     if (GameInstance != null)
     {
         if (GameInstance.getReviews().Length > 0)
         {
             int year = (int)(TimeHelper.Quarters(Planetarium.GetUniversalTime()));
             if (year > ReviewMgr.LastReview().year)
             {
                 Debug.Log("Happy New Quarter!");
                 ReviewMgr.CompleteReview();
             }
         }
     }
 }
コード例 #2
0
 public void UpdateYear()
 {
     Debug.Log("Updating Year");
     year = TimeHelper.Quarters(Planetarium.GetUniversalTime());
 }