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