using Thousandto.Code.Global;
using Thousandto.Code.Logic;
using Thousandto.Plugins.Common;
using System;
using System.Collections.Generic;

using System.Text;
using UnityEngine;

namespace Thousandto.Code.Center
{
    /// <summary>
    /// 用于处理GameUICenter对象
    /// </summary>
    public class GameUICenterScript : MonoBehaviour    
    {
        private static bool _isCreated = false;

        //这里使用Awake保证这个段代码执行在GameCenterScript的Start之前
        private void Awake()
        {
            if (!_isCreated)
            {               
                _isCreated = true;
                GameUICenter.Initialize();
            }
            else
            {
                Destroy(gameObject);
            }
        }

        void Update()
        {
            MyTween.Update();
            UIAnimationManager.Update();
        }
    }
}