| | |
| | | using UnityEngine.UI;
|
| | | using System;
|
| | |
|
| | | namespace Snxxz.UI {
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class LimitedTimePackageTime:MonoBehaviour {
|
| | | public class LimitedTimePackageTime : MonoBehaviour
|
| | | {
|
| | |
|
| | | [SerializeField] TimerBehaviour m_Time;
|
| | | [SerializeField] RectTransform m_ContainerAdvance;
|
| | |
| | | void DisplayTime(int seconds)
|
| | | {
|
| | | m_Time.timeShow.color = seconds > 3600 ? UIHelper.GetUIColor(TextColType.Green) : UIHelper.GetUIColor(TextColType.Red);
|
| | | m_Time.Begin(DateTime.Now.AddTicks(seconds * TimeSpan.TicksPerSecond));
|
| | | m_Time.Begin(seconds);
|
| | | }
|
| | | void DisplayAdvance(int seconds)
|
| | | {
|