com.typhoon.unitysdk 1.1.3 → 1.1.4

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.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # 更新日志
2
- ## [1.1.3] - 2024-11-25
2
+ ## [1.1.4] - 2024-12-06
3
3
 
4
4
  ### 修复
5
+ * unity 测试适配广告不传参数时报错
6
+
7
+
8
+ ## [1.1.3] - 2024-11-25
9
+
10
+ ### 修复
5
11
  * 修复签名设置bug
6
12
 
7
13
 
@@ -37,7 +37,6 @@ namespace TyphoonUnitySDK
37
37
  public NativeView Native = new NativeView();
38
38
  public FloatIconView FloatIcon = new FloatIconView();
39
39
  public InteractiveSources Sources;
40
- public GUISkin Skin;
41
40
 
42
41
  public class UIStyles
43
42
  {
@@ -101,8 +100,6 @@ namespace TyphoonUnitySDK
101
100
  {
102
101
  base.Init();
103
102
  DontDestroyOnLoad(gameObject);
104
- Skin =
105
- AssetDatabase.LoadAssetAtPath<GUISkin>($"{PathRoot}/Editor/Skin.guiskin");
106
103
  var path = $"{PathRoot}/Editor/InteractiveSources.asset";
107
104
  Sources =
108
105
  AssetDatabase.LoadAssetAtPath<InteractiveSources>(path);
@@ -130,7 +127,7 @@ namespace TyphoonUnitySDK
130
127
 
131
128
  public void ShowVideo(Action success, Action<string> fail)
132
129
  {
133
- Video.Show(success, () => fail("fail"));
130
+ Video.Show(success, () => fail?.Invoke("fail"));
134
131
  }
135
132
 
136
133
 
@@ -576,8 +573,6 @@ namespace TyphoonUnitySDK
576
573
  {
577
574
  #if UNITY_EDITOR
578
575
 
579
- var skin = GUI.skin;
580
- GUI.skin = Skin;
581
576
  var mode = GetMode();
582
577
  var rect = new Rect(0, 0, Screen.width, Screen.height);
583
578
  Banner.OnGUI(rect, mode);
@@ -585,7 +580,6 @@ namespace TyphoonUnitySDK
585
580
  Native.OnGUI(rect, mode);
586
581
  Inters.OnGUI(rect, mode);
587
582
  Video.OnGUI(rect, mode);
588
- GUI.skin = skin;
589
583
  #endif
590
584
  }
591
585
 
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.3","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"}],"version_log":"## [1.1.3] - 2024-11-25\r\n\r\n### 修复\n* 修复签名设置bug\r\n\r\n","major_flag":false,"write_time_stamp":1732515352000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.4","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"}],"version_log":"## [1.1.4] - 2024-12-06\r\n\r\n### 修复\n* unity 测试适配广告不传参数时报错\r\n\r\n","major_flag":false,"write_time_stamp":1733459068850,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}