From cbd35c0321529a33d05748f157e5be8a29757c13 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 17 七月 2019 12:56:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into equipstar

---
 System/Skill/ScrollerController.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/System/Skill/ScrollerController.cs b/System/Skill/ScrollerController.cs
index 514b117..7ff3416 100644
--- a/System/Skill/ScrollerController.cs
+++ b/System/Skill/ScrollerController.cs
@@ -236,6 +236,24 @@
         return null;
     }
 
+    public CellView GetActiveCellView(int _index, ScrollerDataType type)
+    {
+        if (m_Scorller == null)
+        {
+            return null;
+        }
+        var views = m_Scorller.GetActiveCellViews();
+        for (int i = 0; i < views.Count; i++)
+        {
+            var _cellView = views[i] as CellView;
+            if (views[i].index == _index && _cellView.type == type)
+            {
+                return _cellView;
+            }
+        }
+        return null;
+    }
+
     public void AddCell(ScrollerDataType type, int index, Action<CellView> action = null, CellInfo? info = null)
     {
         ScrollerData data = null;

--
Gitblit v1.8.0