public PlayerData(Player player, Camera camera, StatManager statManager, DayNightController dayNightController)
    {
        stats    = new float[6];
        stats[0] = statManager.GetPhys();
        stats[1] = statManager.GetMent();
        stats[2] = statManager.GetNutri();
        stats[3] = statManager.GetHygiene();
        stats[4] = statManager.GetEnergy();
        stats[5] = statManager.GetAbility();

        position    = new float[3];
        position[0] = player.transform.position.x;
        position[1] = player.transform.position.y;
        position[2] = player.transform.position.z;

        Vector3 cameraOriginalPosition = CameraFollowPlayer.originalPosition;

        cameraPosition    = new float[3];
        cameraPosition[0] = cameraOriginalPosition.x;
        cameraPosition[1] = cameraOriginalPosition.y;
        cameraPosition[2] = cameraOriginalPosition.z;

        time = dayNightController.getCurrentTimeOfDay();
        day  = dayNightController.getNumDays();

        gameOver = dayNightController.isOver();
    }
    // Update is called once per frame
    void Update()
    {
        int tmp = dayNightController.getNumDays();

        if (day != tmp)
        {
            day = tmp;
            if (day == 2 || day == 17 || day == 29)
            {
                taskManager.setTasks(Tasks[9]); //work from home
                taskManager.setTasks(Tasks[3]); //doctor
            }
            else if (day == 3 || day == 9 || day == 18 || day == 25 || day == 29)
            {
                taskManager.setTasks(Tasks[9]); //work from home
                taskManager.setTasks(Tasks[1]); //pharmacy
            }
            else if (day == 6)
            {
                taskManager.setTasks(Tasks[6]);//find dog
            }
            else if (day == 7 || day == 27)
            {
                taskManager.setTasks(Tasks[4]);//grocery
            }
            else if (day == 13)
            {
                taskManager.setTasks(Tasks[5]);//haircut
            }
            else if (day == 14 || day == 28)
            {
                taskManager.setTasks(Tasks[2]);//grandma
            }
            else if (day == 20)
            {
                taskManager.setTasks(Tasks[7]);//clothes shopping
            }
            else if (day == 21)
            {
                taskManager.setTasks(Tasks[8]);//dog
            }
            else
            {
                taskManager.setTasks(Tasks[0]);//go to work
            }
        }
    }