| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FlashSaleCoolDown : MonoBehaviour
|
| | | {
|
| | | [SerializeField] TimerBehaviour m_Time;
|
| | |
|
| | | private void OnEnable()
|
| | | {
|
| | | DisplayTime();
|
| | | }
|
| | |
|
| | | void DisplayTime()
|
| | | {
|
| | | var seconds = OperationTimeHepler.Instance.GetOperationSurplusTime(Operation.FlashSale);
|
| | | m_Time.Begin(DateTime.Now.AddTicks(seconds * TimeSpan.TicksPerSecond));
|
| | | }
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 993e089198a490c489753521954b6672 |
| | | timeCreated: 1534321918 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |