考核模式上一步被选中
This commit is contained in:
parent
5cfb83ed70
commit
ea4e2a86e2
@ -9,6 +9,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*Create By CG
|
*Create By CG
|
||||||
*Function
|
*Function
|
||||||
@ -328,11 +329,16 @@ namespace ZXK.LouDiXvMuNiu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//选项自身变化
|
//选项自身变化
|
||||||
|
Transform previousTran = null;
|
||||||
Transform seleTran = null;
|
Transform seleTran = null;
|
||||||
for (int i = 0; i < _stepChildrens.Count; i++)
|
for (int i = 0; i < _stepChildrens.Count; i++)
|
||||||
{
|
{
|
||||||
if (_stepChildrens[i].name.Equals(objLight.id.ToString()))
|
if (_stepChildrens[i].name.Equals(objLight.id.ToString()))
|
||||||
{
|
{
|
||||||
|
if (objLight.id > 1&&i>0)
|
||||||
|
{
|
||||||
|
previousTran= _stepChildrens[i-1].transform;
|
||||||
|
}
|
||||||
seleTran = _stepChildrens[i].transform;
|
seleTran = _stepChildrens[i].transform;
|
||||||
}
|
}
|
||||||
if (GameManager.Instance._StateContext.GetState().Name.Equals("TrainState"))
|
if (GameManager.Instance._StateContext.GetState().Name.Equals("TrainState"))
|
||||||
@ -341,8 +347,24 @@ namespace ZXK.LouDiXvMuNiu
|
|||||||
_stepChildrens[i].transform.Find("TextContent").GetComponent<Text>().color = Color.white;
|
_stepChildrens[i].transform.Find("TextContent").GetComponent<Text>().color = Color.white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GameManager.Instance._StateContext.GetState().Name.Equals("ExamState"))
|
||||||
|
{
|
||||||
|
if (previousTran != null)
|
||||||
|
{
|
||||||
|
Text previousNameTxt = previousTran.Find("TextContent").GetComponent<Text>();
|
||||||
|
previousNameTxt.color = new Color(25 / 255.0f, 224 / 255.0f, 224 / 255.0f);
|
||||||
|
}
|
||||||
|
|
||||||
Text nameTxt = seleTran.Find("TextContent").GetComponent<Text>();
|
Text nameTxt = seleTran.Find("TextContent").GetComponent<Text>();
|
||||||
nameTxt.color = new Color(25 / 255.0f, 224 / 255.0f, 224 / 255.0f);
|
nameTxt.color = new Color(25 / 255.0f, 224 / 255.0f, 224 / 255.0f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Text nameTxt = seleTran.Find("TextContent").GetComponent<Text>();
|
||||||
|
nameTxt.color = new Color(25 / 255.0f, 224 / 255.0f, 224 / 255.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//根据子选项Transform找到大步骤选项变化
|
//根据子选项Transform找到大步骤选项变化
|
||||||
for (int i = 0; i < _stepBigs.Count; i++)
|
for (int i = 0; i < _stepBigs.Count; i++)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user