I have this two button on my scene. When i click on the second button it’ll show the data board. I don’t want button to be seen. First button works fine even tho i didn’t do anything.
public void DataBoardButton()
{
dataBoard.transform.GetChild(1).GetComponent<Text>().text = DataManager.instance.totalShotBullet.ToString();
dataBoard.transform.GetChild(2).GetComponent<Text>().text = DataManager.instance.totalEnemyKilled.ToString();
dataBoard.SetActive(true);
}
These are the codes i’m using.
I’d appreciate it if you help me. This is my first project with unity so i don’t know how to do it.