Browse Source

Timer update

master
Bernard Laptop 5 years ago
parent
commit
72defc2fae
3 changed files with 3 additions and 19 deletions
  1. +0
    -8
      Assets/AmplifyShaderEditor/Examples/Official.meta
  2. +0
    -8
      Assets/AmplifyShaderEditor/Plugins/EditorResources/Templates.meta
  3. +3
    -3
      Assets/Scipts/Timer.cs

+ 0
- 8
Assets/AmplifyShaderEditor/Examples/Official.meta View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: d32786c99caa66e41baea4ab6d1c1cb8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 0
- 8
Assets/AmplifyShaderEditor/Plugins/EditorResources/Templates.meta View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 211faf49d0bea6c4081e4e1135d19686
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 3
Assets/Scipts/Timer.cs View File

@ -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);
} }

Loading…
Cancel
Save