Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cirillom committed Aug 23, 2022
1 parent 87d7d67 commit d2bcc76
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
15 changes: 8 additions & 7 deletions Assets/Scenes/GameScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -285.68472}
m_SizeDelta: {x: -0.000030518, y: 840}
m_AnchoredPosition: {x: 0, y: -285.68494}
m_SizeDelta: {x: 0, y: 571.37}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &79557171
MonoBehaviour:
Expand Down Expand Up @@ -3798,8 +3798,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 285.68}
m_SizeDelta: {x: 0, y: 571.37}
m_AnchoredPosition: {x: 0, y: 274.42}
m_SizeDelta: {x: 0, y: 548.86}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &440088139
MonoBehaviour:
Expand Down Expand Up @@ -5437,7 +5437,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: -50, y: 0}
m_AnchoredPosition: {x: -100, y: 0}
m_SizeDelta: {x: 70, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &566857330
Expand Down Expand Up @@ -11353,7 +11353,7 @@ MonoBehaviour:
- sentence: "Abra a geladeira, monte seu prato e tome um caf\xE9 da manh\xE3 refor\xE7ado
para aguentar o dia.\nLembre-se que sua escolha de alimentos \xE9 extremamente
importante, quando sua glicose est\xE1 alta \xE9 importante escolher alimentos
que n\xE3o afetar\xE3o sua glicose glicemica muito bruscamente.\nOu seja, obte
que n\xE3o afetar\xE3o sua glicose glicemica muito bruscamente.\nOu seja, opte
por comer alimentos com menos carboidratos."
interactable: {fileID: 640890981}
timeSet:
Expand Down Expand Up @@ -12574,6 +12574,7 @@ MonoBehaviour:
sleepSelectionScreen: {fileID: 474789081}
amountOfHoursToSleepText: {fileID: 355720586}
wakeUpHourAndMinuteText: {fileID: 1040212941}
sleepSelectorSlider: {fileID: 638958624}
--- !u!1 &1725731994
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -14933,7 +14934,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 20, y: 0}
m_SizeDelta: {x: 100, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2126033713
MonoBehaviour:
Expand Down
10 changes: 6 additions & 4 deletions Assets/Scripts/Controllers/Sleep.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using TMPro;

public class Sleep : MonoBehaviour
{
public class Sleep : MonoBehaviour{
public GameObject sleepSelectionScreen;
public TMP_Text amountOfHoursToSleepText, wakeUpHourAndMinuteText;
[SerializeField] private Slider sleepSelectorSlider;

float amountOfSleepWantedInHours;
SaveState state;
Expand Down Expand Up @@ -81,6 +80,9 @@ public void SleepAction(){
state.carbs = 0;
state.fat = 0;
state.protein = 0;
FindObjectOfType<Foods.UI.Fridge>().DailyNutritionalInfo();

ChangeAmountOfSleep(1);
sleepSelectorSlider.value = 1;
}
}

0 comments on commit d2bcc76

Please sign in to comment.