|
@ -37,13 +37,13 @@ public class Timer : MonoBehaviour { |
|
|
|
|
|
|
|
|
if (curTime > MaxTimer / 2) |
|
|
if (curTime > MaxTimer / 2) |
|
|
{ |
|
|
{ |
|
|
// newColor = new Color(SunImage.color.r, SunImage.color.g + SunImage.color.b);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// newColor = new Color(SunImage.color.r, SunImage.color.g - (colorDif / (1/(0.5 * MaxTimer))), SunImage.color.b);
|
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
|
|
|
// newColor = new Color(SunImage.color.r, SunImage.color.g + (colorDif / (1/(0.5 * MaxTimer))), SunImage.color.b);
|
|
|
} |
|
|
} |
|
|
// SunImage.color = newColor;
|
|
|
|
|
|
|
|
|
// SunImage.color = newColor;
|
|
|
Sun.RotateAround(Pivot.transform.position, -1 * Sun.transform.forward, (180 / MaxTimer) * Time.deltaTime); |
|
|
Sun.RotateAround(Pivot.transform.position, -1 * Sun.transform.forward, (180 / MaxTimer) * Time.deltaTime); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|