Could you help me to reduce this code as much as possible?
public GameObject[] TextPage;
public void Skin0()
{
foreach (GameObject go in TextPage)
{
go.SetActive(false);
}
TextPage[0].SetActive(true);
}
public void Skin1()
{
foreach (GameObject go in TextPage)
{
go.SetActive(false);
}
TextPage[1].SetActive(true);
}
public void Skin2()
{
foreach (GameObject go in TextPage)
{
go.SetActive(false);
}
TextPage[2].SetActive(true);
}