Files
Main/Assets/GameAssets/Resources/GameUI/Center/GameUICenterScript.cs
2025-01-25 04:38:09 +08:00

40 lines
896 B
C#

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