1
This commit is contained in:
@@ -15,7 +15,9 @@ public class UIPanelControll : MonoSingleton<UIPanelControll>
|
||||
|
||||
//<2F><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
||||
bool isRun = false;
|
||||
bool isRun2 = false;
|
||||
float waitTime = 5f;
|
||||
float waitTime2 = 3f;
|
||||
float runTime = 0;
|
||||
|
||||
int nowIndex = 0; //<2F><>ǰ<EFBFBD>±<EFBFBD>
|
||||
@@ -35,6 +37,23 @@ public class UIPanelControll : MonoSingleton<UIPanelControll>
|
||||
isRun = false;
|
||||
runTime = 0;
|
||||
ListUiImg[nowIndex].gameObject.SetActive(false);
|
||||
if (nowIndex==0)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isRun2)
|
||||
{
|
||||
runTime += Time.deltaTime;
|
||||
if (runTime >= waitTime2)
|
||||
{
|
||||
isRun2 = false;
|
||||
isRun = true;
|
||||
runTime = 0;
|
||||
ListUiImg[0].gameObject.SetActive(true);
|
||||
ListUiImg[8].gameObject.SetActive(false);
|
||||
GlobalEventMgr.Dispatch(GameEvent.EventPlayTimeline);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,14 +64,22 @@ public class UIPanelControll : MonoSingleton<UIPanelControll>
|
||||
if (index == 0|| index == 7)
|
||||
{
|
||||
nowIndex = index;
|
||||
ListUiImg[nowIndex].gameObject.SetActive(true);
|
||||
if (index != 7)
|
||||
if (index == 0)
|
||||
{
|
||||
isRun2 = true;
|
||||
ListUiImg[8].gameObject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ListUiImg[nowIndex].gameObject.SetActive(true);
|
||||
}
|
||||
if (index != 7&&index!=0)
|
||||
isRun = true;
|
||||
else
|
||||
{
|
||||
if (index == 7)
|
||||
{
|
||||
waitTime = 11;
|
||||
waitTime = 5;
|
||||
isRun = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user