This commit is contained in:
parent
32a5618200
commit
086a9b0d08
|
|
@ -7,10 +7,11 @@ public class Player10007_7002 : SingletonMono<Player10007_7002>
|
|||
public int moveNum = 0;
|
||||
public Vector3 lastMovePos = new Vector3(0, 0, 0);
|
||||
public List<GameObject> cdzList = new List<GameObject>();
|
||||
public bool isNearCDZ = false;
|
||||
public bool isNearCDZ, isTour = false;
|
||||
private void Start()
|
||||
{
|
||||
isNearCDZ = false;
|
||||
isTour = false;
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
|
|
@ -20,6 +21,7 @@ public class Player10007_7002 : SingletonMono<Player10007_7002>
|
|||
moveNum++;
|
||||
if (moveNum == 500)
|
||||
{
|
||||
isTour = true;
|
||||
//Debug.LogError("巡视OK");
|
||||
//GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId);
|
||||
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID("巡视场站", true) == 0)
|
||||
|
|
|
|||
|
|
@ -43,13 +43,36 @@ public class UI_InstallAndDismantleTicketPanel_10007_7002 : BasePanel
|
|||
private void showToogle()
|
||||
{
|
||||
CloseToggle(true);
|
||||
for (int j = 1; j <= Score_7002.xzDic[1].Count; j++)
|
||||
{
|
||||
for (int k = 0; k < Score_7002.xzDic[1][j].Length; k++)
|
||||
{
|
||||
if (Player10007_7002.Instance)
|
||||
{
|
||||
GetControl<Toggle>("t1_" + j + "_" + k).enabled = Player10007_7002.Instance.isTour;
|
||||
}
|
||||
else
|
||||
{
|
||||
GetControl<Toggle>("t1_" + j + "_" + k).enabled = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
for (int j = 1; j <= Score_7002.xzDic[2].Count; j++)
|
||||
{
|
||||
for (int k = 0; k < Score_7002.xzDic[2][j].Length; k++)
|
||||
{
|
||||
GetControl<Toggle>("t2_" + j + "_" + k).enabled = Player10007_7002.Instance.isNearCDZ;
|
||||
if (Player10007_7002.Instance)
|
||||
{
|
||||
GetControl<Toggle>("t2_" + j + "_" + k).enabled = Player10007_7002.Instance.isNearCDZ;
|
||||
}
|
||||
else
|
||||
{
|
||||
GetControl<Toggle>("t2_" + j + "_" + k).enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public void showToggle(int xzDicCount)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public class UI_TipsForPracticePanel : BasePanel
|
|||
GameManager.UIMgr.ShowPanel<UI_TipsForPracticePanel>(E_UI_Layer.Mid);
|
||||
});
|
||||
}
|
||||
ScoreManager.instance.ReInit();
|
||||
break;
|
||||
case "BackBtn":
|
||||
GameManager.Instance.ShowUIPanelAndLoadScene(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue