fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user