Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I don't know what your traying to do but.. try

this:

        if (Input.GetButtonDown("Mapswitch") && map2active == false && map1active == true)

        {

            map1.SetActive(false);

            map2.SetActive(true);

             map1active == false;

             map2active == true; 

       }

        else if (Input.GetButtonDown("Mapswitch") && map2active == true && map1active == false)

        {

            map1.SetActive(true);

            map2.SetActive(false);

             map1active == true;

             map2active == false; 

        }

Thanks :D

To me? i was thinking a lot.. for your code