Skip to content

Commit 68a2183

Browse files
committed
去掉一些报错
1 parent c9905af commit 68a2183

File tree

488 files changed

+25824
-1044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

488 files changed

+25824
-1044
lines changed

Assets/Resources/LuaLib/LuaDataHelper.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.
136 Bytes
Binary file not shown.

Assets/Resources/ResourcesManifest.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ luaformattools lualib/luaformattools
3030
luajson lualib/luajson
3131
luaprinttable lualib/luaprinttable
3232
luastringhelper lualib/luastringhelper
33+
gameobject 1 prefab/gameobject 1
34+
gameobject 2 prefab/gameobject 2
3335
gameobject prefab/gameobject
3436
gogo prefab/gogo
37+
uitest 1 prefab/uitest 1
38+
uitest 2 prefab/uitest 2
39+
uitest 3 prefab/uitest 3
40+
uitest 4 prefab/uitest 4
41+
uitest 5 prefab/uitest 5
42+
uitest 6 prefab/uitest 6
3543
uitest prefab/uitest
3644
dl_01 sprite/dl_01
3745
dl_01.png sprite/dl_01.png
@@ -64,5 +72,11 @@ testwindow ui/testwindow/testwindow
6472
testwindowwindow ui/testwindowwindow/testwindowwindow
6573
uimanager ui/uimanager
6674
gameobject_adasd gameobject_adasd
75+
new material 2 new material 2
76+
new material 3 new material 3
77+
new material 4 new material 4
78+
new material 5 new material 5
79+
new material 6 new material 6
80+
new material new material
6781
resourcesmanifest resourcesmanifest
6882
version version
-2.23 KB
Binary file not shown.

Assets/Resources/UI/UIManager.prefab.meta

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Scene/main.unity

14.7 KB
Binary file not shown.

Assets/Script/Core/AnimSystem/AnimSystem.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,12 +1036,15 @@ public static void StopAnim(GameObject animGameObject, bool isCallBack = false)
10361036
/// <param name="isCallBack">是否触发回调</param>
10371037
public static void StopAnim(AnimData animData, bool isCallBack = false)
10381038
{
1039-
if (isCallBack)
1039+
if(GetInstance().animList.Contains(animData))
10401040
{
1041-
animData.ExecuteCallBack();
1042-
}
1041+
if (isCallBack)
1042+
{
1043+
animData.ExecuteCallBack();
1044+
}
10431045

1044-
GetInstance().animList.Remove(animData);
1046+
GetInstance().animList.Remove(animData);
1047+
}
10451048
}
10461049

10471050
/// <summary>

Assets/Script/Core/Application/ApplicationManager.cs

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public static ApplicationManager Instance
1414
if (instance == null)
1515
{
1616
instance = FindObjectOfType<ApplicationManager>();
17-
1817
}
1918
return ApplicationManager.instance; }
2019
set { ApplicationManager.instance = value; }
@@ -80,14 +79,31 @@ public static string Version
8079
/// <summary>
8180
/// 语言
8281
/// </summary>
83-
public SystemLanguage langguage = SystemLanguage.ChineseSimplified;
82+
//public SystemLanguage langguage = SystemLanguage.ChineseSimplified;
8483
/// <summary>
8584
/// 显示括号标识多语言转换的字段
8685
/// </summary>
8786
public bool showLanguageValue = false;
8887
public void Awake()
8988
{
89+
Debug.Log("persistentDataPath:" + Application.persistentDataPath);
9090
instance = this;
91+
92+
GameInfoCollecter.AddAppInfoValue("Build App Mode", m_AppMode);
93+
if (Application.platform != RuntimePlatform.WindowsEditor &&
94+
Application.platform != RuntimePlatform.OSXEditor)
95+
{
96+
try
97+
{
98+
string modeStr = PlayerPrefs.GetString("AppMode", m_AppMode.ToString());
99+
m_AppMode = (AppMode)Enum.Parse(typeof(AppMode), modeStr);
100+
}
101+
catch (Exception e)
102+
{
103+
Debug.LogError(e);
104+
}
105+
}
106+
91107
AppLaunch();
92108
}
93109
[Tooltip("加载资源时是否使用缓存,Bundle加载不起作用(都为使用)")]
@@ -119,6 +135,8 @@ public void AppLaunch()
119135

120136
SDKManager.Init(); //初始化SDKManger
121137

138+
RealNameManager.GetInstance().Init(); //初始化实名制系统
139+
122140
if (AppMode != AppMode.Release)
123141
{
124142
GUIConsole.Init(); //运行时Console
@@ -135,7 +153,8 @@ public void AppLaunch()
135153
DevelopReplayManager.Init(m_quickLunch); //开发者复盘管理器
136154

137155
LanguageManager.Init();
138-
LanguageManager.SetLanguage(langguage);
156+
Debug.LogWarning("非 release 模式下,语言 受 ApplicationManager 控制");
157+
//LanguageManager.SetLanguage(langguage);
139158
}
140159
else
141160
{
@@ -150,10 +169,18 @@ public void AppLaunch()
150169
LanguageManager.Init();
151170

152171
}
172+
173+
if (s_OnApplicationModuleInitEnd != null)
174+
{
175+
s_OnApplicationModuleInitEnd();
176+
}
153177
}
154178

155179
#region 程序生命周期事件派发
156-
180+
/// <summary>
181+
/// 框架模块初始化完成回调
182+
/// </summary>
183+
public static ApplicationVoidCallback s_OnApplicationModuleInitEnd = null;
157184
public static ApplicationVoidCallback s_OnApplicationQuit = null;
158185
public static ApplicationBoolCallback s_OnApplicationPause = null;
159186
public static ApplicationBoolCallback s_OnApplicationFocus = null;
@@ -254,7 +281,7 @@ void SetResourceLoadType(bool useCache)
254281
{
255282
if (UseAssetsBundle)
256283
{
257-
284+
HotUpdateManager.CheckLocalVersion();
258285
ResourceManager.Initialize ( AssetsLoadType.AssetBundle,useCache);
259286
}
260287
else
File renamed without changes.

Assets/Script/Core/Editor/Application/ApplicationManagerComponentEditor.cs renamed to Assets/Script/Core/Application/Editor/ApplicationManagerComponentEditor.cs

File renamed without changes.

0 commit comments

Comments
 (0)