Ejemplo n.º 1
0
    private void StartDay()
    {
        currentHours = DAY_START_HOURS;
        currentMins  = 0;
        day++;

        MainCharacterController mc = MainCharacterController.Instance;

        if (SceneManager.GetActiveScene().name.Equals("FarmScene"))
        {
            mc.gameObject.transform.rotation = Quaternion.Euler(0, 0, 0);
            mc.MoveToStartPosition();
            FarmingController.Instance.AgePlants();

            SaveLoadSystem.Instance.SaveProgress();
        }
        else
        {
            SaveLoadSystem.Instance.SaveTempProgress();
        }
    }