public void BTNControl() { player.isbutton = true; ES2.Save(player.isbutton, "controls"); BTNCrouch.SetActive(true); BTNJump.SetActive(true); Offpanel.SetActive(false); }
void Controls() { if (!player.isbutton) { BTNCrouch.SetActive(false); BTNJump.SetActive(false); } else { BTNCrouch.SetActive(true); BTNJump.SetActive(true); } }