JoansLink00 3 months ago
parent 087265d63e
commit 58119f52b9

@ -1779,7 +1779,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.0000033379, y: 0, z: -2.26} m_LocalPosition: {x: -0.0000033379, y: 0, z: -2.26}
m_LocalScale: {x: 29.283, y: 1, z: 6.4701} m_LocalScale: {x: 29.283, y: 1, z: 6.4701}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 1
m_Children: [] m_Children: []
m_Father: {fileID: 1262927944} m_Father: {fileID: 1262927944}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -3847,7 +3847,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068} m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: 11.45, y: 0, z: 8.58} m_LocalPosition: {x: 11.45, y: 0, z: 8.58}
m_LocalScale: {x: 15.47548, y: 1, z: 6.4701} m_LocalScale: {x: 15.47548, y: 1, z: 6.4701}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 1
m_Children: [] m_Children: []
m_Father: {fileID: 1262927944} m_Father: {fileID: 1262927944}
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
@ -4452,7 +4452,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068} m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalPosition: {x: -11.43, y: 0, z: 15.52} m_LocalPosition: {x: -11.43, y: 0, z: 15.52}
m_LocalScale: {x: 29.283, y: 1, z: 6.4701} m_LocalScale: {x: 29.283, y: 1, z: 6.4701}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 1
m_Children: [] m_Children: []
m_Father: {fileID: 1262927944} m_Father: {fileID: 1262927944}
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}

@ -33,8 +33,8 @@ public class BearAwareness : MonoBehaviour
void IncreaseAwareness(int noice) void IncreaseAwareness(int noice)
{ {
awareness += noice; //awareness += noice;
awarenessSlider.value = awareness; awarenessSlider.value += noice;
if (awareness >= awarenessSlider.maxValue) if (awareness >= awarenessSlider.maxValue)
{ {
@ -64,15 +64,15 @@ public class BearAwareness : MonoBehaviour
void ChangeSliderColor() void ChangeSliderColor()
{ {
if (awareness >= (awarenessSlider.maxValue - 10)) if (awarenessSlider.value >= (awarenessSlider.maxValue - 10))
{ {
SilderColor.color = Color.red; SilderColor.color = Color.red;
} }
else if (awareness >= (awarenessSlider.maxValue / 2)) else if (awarenessSlider.value >= (awarenessSlider.maxValue / 2))
{ {
SilderColor.color = Color.orange; SilderColor.color = Color.orange;
} }
else if (awareness <= (awarenessSlider.maxValue / 2) ) else if (awarenessSlider.value <= (awarenessSlider.maxValue / 2) )
{ {
SilderColor.color = Color.darkGreen; SilderColor.color = Color.darkGreen;
} }

Loading…
Cancel
Save