修改成黑色文字
This commit is contained in:
parent
fe7e6b4290
commit
7eca71fe1e
@ -23,12 +23,12 @@ namespace QFramework.Example
|
|||||||
{
|
{
|
||||||
if (isOn)
|
if (isOn)
|
||||||
{
|
{
|
||||||
Training.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(1, 1, 1, 1f);
|
Training.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(0, 0, 0, 1f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
Training.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(1, 1, 1, 0.5f);
|
Training.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(0, 0, 0, 0.5f);
|
||||||
}
|
}
|
||||||
TrainContent.gameObject.SetActive(isOn);
|
TrainContent.gameObject.SetActive(isOn);
|
||||||
});
|
});
|
||||||
@ -36,12 +36,12 @@ namespace QFramework.Example
|
|||||||
{
|
{
|
||||||
if (isOn)
|
if (isOn)
|
||||||
{
|
{
|
||||||
Operation.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(1, 1, 1, 1f);
|
Operation.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(0, 0, 0, 1f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
Operation.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(1, 1, 1, 0.5f);
|
Operation.transform.Find("Label").GetComponent<TextMeshProUGUI>().color = new Color(0, 0, 0, 0.5f);
|
||||||
}
|
}
|
||||||
OperationContent.gameObject.SetActive(isOn);
|
OperationContent.gameObject.SetActive(isOn);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user