Hello. This is my question : How I do when the player spawn I select a class (assault, sniper, …) and it result OnGUI ??
if(GUI.Button(Rect(CenterW + 5, CenterH + 20, 290, 65), "Red Team"))
{
CurTeam = "Red";
if(GUI,Button(Rect(CenterW - 10, CenterH + 20, 245, 30), Assault))
{
weapon1.SetActive(true);
weapon2.SetActive(false);
}
else if(GUI,Button(Rect(CenterW - 10, CenterH + 20, 245, 30), Sniper))
{
weapon1.SetActive(false);
weapon2.SetActive(true);
}
}