| System/HazyRegion.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionCyclicScroll.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionCyclicScroll.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionEventBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionEventBehaviour.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionModel.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/HazyRegion/HazyRegionWin.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/WindowBase/ModelCenter.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/HazyRegion.meta
New file @@ -0,0 +1,9 @@ fileFormatVersion: 2 guid: 3a97466d4874bbc4385441a3ac16b0df folderAsset: yes timeCreated: 1554358777 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant: System/HazyRegion/HazyRegionCyclicScroll.cs
New file @@ -0,0 +1,59 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Snxxz.UI { public class HazyRegionCyclicScroll : CyclicScroll { [SerializeField] float m_FadeInTime = 0.2f; public bool IsPlaying { get; private set; } public override void Init<T>(List<T> _datas, bool _stepByStep = false) { base.Init(_datas, _stepByStep); IsPlaying = false; this.enabled = true; } public void StartEnterAnmation() { IsPlaying = true; this.enabled = false; StartCoroutine(Co_EnterAnimation()); } IEnumerator Co_EnterAnimation() { for (int i = 0; i < infiniteItems.Count; i++) { var behaviour = infiniteItems[i] as HazyRegionEventBehaviour; behaviour.alphaTween.SetStartState(); } var width = content.sizeDelta.x; var time = 0f; for (int i = 0; i < infiniteItems.Count; i++) { var behaviour = infiniteItems[i] as HazyRegionEventBehaviour; behaviour.linerMove.duration = behaviour.alphaTween.duration; var fromX = content.anchoredPosition.x + width / 2 + cellSize.x; behaviour.linerMove.from = content.anchoredPosition.SetX(fromX); var toX = content.anchoredPosition.x - width / 2 + cellSize.x / 2 + i * (cellSize.x + spacing.x); behaviour.linerMove.to = content.anchoredPosition.SetX(toX); behaviour.alphaTween.Play(); behaviour.linerMove.Begin(); yield return WaitingForSecondConst.GetWaitForSeconds(m_FadeInTime); time = behaviour.alphaTween.duration - m_FadeInTime; } yield return WaitingForSecondConst.GetWaitForSeconds(time); IsPlaying = false; this.enabled = true; } } } System/HazyRegion/HazyRegionCyclicScroll.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 30deeab42abedf7458bea9c513ed31b8 timeCreated: 1554359458 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/HazyRegion/HazyRegionEventBehaviour.cs
New file @@ -0,0 +1,20 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Snxxz.UI { public class HazyRegionEventBehaviour : ScrollItem { [SerializeField] UIAlphaTween m_AlphaTween; [SerializeField] UILinerMove m_LinerMove; public UIAlphaTween alphaTween { get { return m_AlphaTween; } } public UILinerMove linerMove { get { return m_LinerMove; } } public override void Display(object _data) { base.Display(_data); } } } System/HazyRegion/HazyRegionEventBehaviour.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: f157de73adafe7e40943853257e03a6d timeCreated: 1554360030 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/HazyRegion/HazyRegionModel.cs
New file @@ -0,0 +1,25 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Snxxz.UI { public class HazyRegionModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk { public override void Init() { } public void OnBeforePlayerDataInitialize() { } public void OnPlayerLoginOk() { } public override void UnInit() { } } } System/HazyRegion/HazyRegionModel.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 850cb668290bbf34fb0e2882c56defb9 timeCreated: 1554358789 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/HazyRegion/HazyRegionWin.cs
New file @@ -0,0 +1,64 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, April 04, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class HazyRegionWin : Window { [SerializeField] HazyRegionCyclicScroll m_EventCyclicScroll; [SerializeField] List<int> m_TestDatas; #region Built-in protected override void BindController() { } protected override void AddListeners() { } protected override void OnPreOpen() { Display(); } protected override void OnActived() { base.OnActived(); m_EventCyclicScroll.StartEnterAnmation(); } protected override void OnAfterOpen() { } protected override void OnPreClose() { } protected override void OnAfterClose() { } #endregion void Display() { m_EventCyclicScroll.Init(m_TestDatas); } } } System/HazyRegion/HazyRegionWin.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 9f6e51c1812470a46b101b0af440843d timeCreated: 1554360355 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/WindowBase/ModelCenter.cs
@@ -231,6 +231,7 @@ RegisterModel<ReikiRootModel>(); RegisterModel<AuctionNewGetShowModel>(); RegisterModel<DungeonNuwaModel>(); RegisterModel<HazyRegionModel>(); inited = true; }