fix:1、更换项目,使用winter来创建

This commit is contained in:
2026-04-22 11:13:16 +08:00
parent 173cfb2dc9
commit 83ff9f71ad
7375 changed files with 209752 additions and 157557 deletions
@@ -1,6 +1,6 @@
using System;
namespace FlowerPower
namespace LoveLegend
{
public abstract class BaseInterfaceManager<T> : IDisposable, InterfaceManager where T : BaseInterfaceManager<T>, new()
@@ -1,4 +1,4 @@
namespace FlowerPower
namespace LoveLegend
{
public abstract class BaseUnityManager<T> : SingletonUnity<T>, InterfaceManager
@@ -1,4 +1,4 @@
namespace FlowerPower
namespace LoveLegend
{
public interface InterfaceManager
{
@@ -2,7 +2,7 @@ using FairyGUI;
using UnityEngine;
using UnityEngine.EventSystems;
namespace FlowerPower
namespace LoveLegend
{
public sealed class CameraManager : BaseInterfaceManager<CameraManager>
{
@@ -1,8 +1,8 @@
using System;
namespace FlowerPower
namespace LoveLegend
{
public enum MonthType : int
public enum MonthType : int
{
None = 0,
January = 1,
@@ -32,7 +32,7 @@ namespace FlowerPower
private long HeartBeatInterval = 7;
private int FixTimeOffset = 0;
public int ServerRTTOneWayTimeOffset { get; private set; }
@@ -102,12 +102,20 @@ namespace FlowerPower
public long GetServerCurrTimestamp()
public long GetServerCurrTimestamp(bool isFix = false)
{
return GetCurrTimestamp() - ServerRTTOneWayTimeOffset;
var servertimes = GetCurrTimestamp() - ServerRTTOneWayTimeOffset;
if(isFix)
{
servertimes += FixTimeOffset;
}
return servertimes;
}
public void SetTimeOffset(int offset)
{
FixTimeOffset += offset;
}
public DateTime GetServerCurrDateTime()
@@ -397,7 +405,7 @@ namespace FlowerPower
}
public string DateTimeToFFFString(DateTime time)
{
return time.ToString("HH:mm:ss");
return time.ToString("HH:mm:ss ff");
}
public long GetServerCurrTimestampByMillisecond()
{
@@ -1,5 +1,5 @@
namespace FlowerPower
namespace LoveLegend
{
public sealed class GameIManager : BaseInterfaceManager<GameIManager>
{
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace FlowerPower
namespace LoveLegend
{
public sealed class ModuleManager : BaseInterfaceManager<ModuleManager>
{
@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace FlowerPower
namespace LoveLegend
{
public sealed class SceneManager : BaseInterfaceManager<SceneManager>
{
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace FlowerPower
namespace LoveLegend
{
public sealed class ManagerOfManager : Singleton<ManagerOfManager>
{
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using UnityEngine.Events;
namespace FlowerPower
namespace LoveLegend
{
public sealed class AudioManager : BaseUnityManager<AudioManager>
{
@@ -107,7 +107,7 @@ namespace FlowerPower
public void InitDefaultButtonClickSound(string btnSound)
{
string defaultSound = AudioConst.click;
string defaultSound = AudioConst.UIButtonDefault;
if (!string.IsNullOrEmpty(btnSound))
{
defaultSound = btnSound;
@@ -3,7 +3,7 @@ using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
namespace FlowerPower
namespace LoveLegend
{
public sealed class SceneSwitchManager : BaseUnityManager<SceneSwitchManager>
{
@@ -1,6 +1,6 @@
using UnityEngine;
namespace FlowerPower
namespace LoveLegend
{
public enum TimerTimeType : int
{
@@ -7,7 +7,7 @@ using UnityEngine.EventSystems;
using System.Collections.Generic;
using System.Linq;
namespace FlowerPower
namespace LoveLegend
{
public class UISequenceInfo
{
@@ -694,7 +694,7 @@ namespace FlowerPower
{
GameObject engineEventSystemGo = new GameObject("[EngineEventSystem]");
engineEventSystemGo.AddComponent<EngineEventSystem>();
engineEventSystemGo.transform.SetParent(GemCrushCore.Instance.transform, false);
engineEventSystemGo.transform.SetParent(LoveLegendCore.Instance.transform, false);
}
private void InitFguiConfig()
@@ -763,7 +763,7 @@ namespace FlowerPower
{
if (AppConst.IsMultiLangue)
{
Stage.inst.currLang = AppConst.InternalLangue;
Stage.inst.currLang = Language.getCurrentLanguage();
}
}
@@ -823,7 +823,7 @@ namespace FlowerPower
if (multiLangueConfigList == null || multiLangueConfigList.Count == 0) return;
if (string.IsNullOrWhiteSpace(switchLang)) return;
if (switchLang == Stage.inst.currLang && switchLang == AppConst.InternalLangue) return;
if (switchLang == Stage.inst.currLang) return;
if (!multiLangueConfigList.Contains(switchLang)) return;
var switchLangXML = LoadKit.Instance.LoadAsset<TextAsset>("TextAsset.I18N", switchLang);
@@ -832,6 +832,9 @@ namespace FlowerPower
var xml = new FairyGUI.Utils.XML(switchLangXML.text);
UIPackage.SetStringsSource(xml);
Stage.inst.currLang = switchLang;
AppConst.CurrMultiLangue = switchLang;