public void SetDebugDate()
 {
     if (!String.IsNullOrEmpty(inputField.text))
     {
         try
         {
             int days = Convert.ToInt32(inputField.text);
             saveDataController.SetStartingDayDebug(days);
         }
         catch
         {
         }
     }
 }
Esempio n. 2
0
    void GetCurrentDay()
    {
        if (debugDay > 0.0f)
        {
            Debug.Log("debug day " + debugDay);
            saveDataController.SetStartingDayDebug((int)debugDay);


            Day = (float)saveDataController.GetCurrentDay();
        }
        else
        {
            Debug.Log("not debug, getting actual day");
            Day = (float)saveDataController.GetCurrentDay();
        }
    }