com.typhoon.unitysdk 1.0.32 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,16 +282,15 @@ namespace TyphoonUnitySDK
282
282
  /// </summary>
283
283
  public static string GetVariableValue(string variableName)
284
284
  {
285
- #if TYPHOON_ADDRESSABLE
286
285
  try
287
286
  {
288
- var settings = AddressableAssetSettingsDefaultObject.Settings;
287
+ var settings = DefaultSettings;
289
288
  return settings.profileSettings.GetValueByName(settings.activeProfileId, variableName);
290
289
  }
291
290
  finally
292
291
  {
293
292
  }
294
- #endif
293
+
295
294
  return string.Empty;
296
295
  }
297
296
 
@@ -384,6 +384,13 @@ namespace TyphoonUnitySDK
384
384
  {
385
385
  // Debug.Log($"删除:{folder}");
386
386
  Directory.Delete(folder, true);
387
+ var meta = $"{folder}.meta";
388
+ if (File.Exists(meta))
389
+ {
390
+ File.Delete(meta);
391
+ }
392
+
393
+ AssetDatabase.Refresh();
387
394
  }
388
395
  }
389
396
  }
@@ -47,7 +47,7 @@ namespace TyphoonUnitySDK
47
47
  var tmpEnable = GUI.enabled;
48
48
  GUI.enabled = true;
49
49
  GUILayout.Space(6);
50
- GUIDrawer.DrawKeynotes("①推荐Unity版本:2019,2020,2021");
50
+ GUIDrawer.DrawKeynotes("①支持Unity版本:2019,2020,2021(推荐,支持ASTC压缩,坑最少)");
51
51
  GUIDrawer.DrawKeynotes("②为EventSystem加上WxMiniTouchInputSupport组件,用于支持多点触控");
52
52
  GUILayout.Space(6);
53
53
  GUI.enabled = tmpEnable;
@@ -66,6 +66,7 @@ namespace TyphoonUnitySDK
66
66
 
67
67
  private static bool DrawProperty_CDN(WxMiniConfig arg)
68
68
  {
69
+ GUILayout.Space(10);
69
70
  GUILayout.BeginHorizontal();
70
71
  arg.CDN = EditorGUILayout.TextField("CDN地址 (后台配白名单)", arg.CDN);
71
72
  GUILayout.EndHorizontal();
@@ -252,6 +253,9 @@ namespace TyphoonUnitySDK
252
253
 
253
254
  [Header("基础设置")] public string AppId = "";
254
255
  public string ProjectName = "";
256
+ [Header("广告参数(不填不开启)")] public string BannerAdUnit = "";
257
+ public string IntersAdUnit = "";
258
+ public string VideoAdUnit = "";
255
259
  public string CDN = "https://xxx.xxx.xxx";
256
260
  public Orientation ScreenOrientation = Orientation.Portrait;
257
261
  public int MemorySize = 256;
@@ -9,6 +9,8 @@ namespace TyphoonUnitySDK
9
9
  {
10
10
  #region 静态
11
11
 
12
+ private static long _sessionId = 0;
13
+
12
14
  /*session map*/
13
15
  public static Dictionary<long, SessionItem> SessionsMap = new Dictionary<long, SessionItem>();
14
16
 
@@ -18,12 +20,19 @@ namespace TyphoonUnitySDK
18
20
  if (SessionsMap.TryGetValue(session, out var match))
19
21
  {
20
22
  match.OnExecute?.Invoke(json);
21
- match.Dispose();
23
+ ClearSession(match.SessionId);
22
24
  }
23
25
  }
24
26
 
25
-
26
- public static long _sessionId = 0;
27
+ /*清理Session*/
28
+ public static void ClearSession(long session)
29
+ {
30
+ if (SessionsMap.TryGetValue(session, out var match))
31
+ {
32
+ match.Dispose();
33
+ SessionsMap.Remove(session);
34
+ }
35
+ }
27
36
 
28
37
  #endregion
29
38
 
@@ -1,4 +1,3 @@
1
- using System;
2
1
  using UnityEngine;
3
2
  using UnityEngine.EventSystems;
4
3
 
@@ -385,8 +385,14 @@ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/UnityToJs.cs
385
385
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/UnityToJs.cs.meta
386
386
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/WxMiniSdk.cs
387
387
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/WxMiniSdk.cs.meta
388
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/WxMiniSdkCallBack.cs
389
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/WxMiniSdkCallBack.cs.meta
388
390
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/PublishWxMini.cs
389
391
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/PublishWxMini.cs.meta
392
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-mini-sdk-config.js
393
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-mini-sdk-config.js.meta
394
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-mini-sdk-wx.js
395
+ Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-mini-sdk-wx.js.meta
390
396
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-unity-wx.js
391
397
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Editor/typhoon-unity-wx.js.meta
392
398
  Assets/Typhoon_Gen/TyphoonSDK/Runtime/WxMini/Plugins/_unity_js_bridge.jslib
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.32","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.34","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}