123456789101112131415161718192021222324252627282930 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class AlphaAnim : MonoBehaviour
- {
- private UISprite sprite;
- void Start ()
- {
- sprite = GetComponent<UISprite>();
- }
-
- // Update is called once per frame
- void Update () {
- Debug.Log(TimeManager.Instance.timecurrent.Day +" " + TimeManager.Instance.timecurrent.Month +" " +TimeManager.Instance.timecurrent.Year);
- if (TimeManager.Instance.timecurrent.Year >=17) {
- if (TimeManager.Instance.timecurrent.Month >= 10)
- {
-
- if (TimeManager.Instance.timecurrent.Day > 11) {
- sprite.color = new Color (sprite.color.r, sprite.color.g, sprite.color.b, 1);
- return;
- }
- }
- }
- sprite.color = new Color (sprite.color.r, sprite.color.g, sprite.color.b, Mathf.PingPong (Time.time, 1f));
- }
- }
|