From 12049b61f839f7fbe01e077ea17c9f2dacfaf026 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 31 Dec 2021 12:23:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A2=E7=B4=A2=E5=9C=B0=E5=9B=BE=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/View/SingleExplorePlayerView.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua b/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua index 23da3f8570..f3cc7225ba 100644 --- a/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua +++ b/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua @@ -295,7 +295,9 @@ function SingleExplorePlayerView:RefreshPoints() end Timer.New(function() index = (index + 1)%pointnum == 0 and pointnum or (index + 1)%pointnum - self.exploreList[index].gameObject:SetActive(true) + if self.exploreList[index] then + self.exploreList[index].gameObject:SetActive(true) + end end,0.25,2):Start() end s() @@ -946,5 +948,6 @@ function SingleExplorePlayerView:OnClose() --当前触发的事件点 self.eventPointPos = nil self.state = 0 + self.exploreList = {} end return SingleExplorePlayerView \ No newline at end of file