| System/GeneralConfig/GeneralDefine.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| UI/Effect/SpringDecorate.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| UI/Effect/SpringDecorate.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/GeneralConfig/GeneralDefine.cs
@@ -172,6 +172,7 @@ public static Dictionary<int, int> SgzcRealm { get; private set; } public static int crossServerOneVsOneOpenDay { get; private set; } public static int UISpringDecorate { get; private set; } public static void Init() { @@ -676,6 +677,7 @@ } crossServerOneVsOneOpenDay = GetInt("CrossRealmCfg"); UISpringDecorate = GetInt("UISpringDecorate"); } catch (Exception ex) { UI/Effect/SpringDecorate.cs
New file @@ -0,0 +1,31 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(RectTransform))] public class SpringDecorate : MonoBehaviour { GameObject springDecorate = null; private void Start() { if (GeneralDefine.UISpringDecorate != 0) { if (springDecorate == null) { springDecorate = UIUtility.CreateWidget("Container_SpringDecorate", "SpringDecorate"); } var rectTransform = springDecorate.transform as RectTransform; rectTransform.MatchWhith(this.transform as RectTransform); } else { if (springDecorate != null) { GameObject.DestroyImmediate(springDecorate); } } } } UI/Effect/SpringDecorate.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 2f22490435e43864f8b21928175f09be timeCreated: 1548641856 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: