I was using this project as a base for my mobile game, I ran into an issue with the controls. I'm not too sure how to have scroll wheel as a mobile control button, and I'm also not really sure how to change it from scroll wheel to just buttons on the keyboard instead. Do you have any clue how I could achieve this?
Viewing post in Minecraft [UNITY RECREATION] + Unity Project comments
I'm pretty sure i did something like this in the code:
if(Input.GetAxis("Mouse ScrollWheel") > 0) block++;
if(Input.GetAxis("Mouse ScrollWheel") < 0) block--;
if(block < 0) block = maxBlock;
if(block > maxBlock) block = 0;
I looked for an input axis rather than a Input.GetKeyDown, so just replace this section with something like that.
Edit: commenting out the save feature on save and quit gets the button to work, is there anyway to get the save feature working on phones?
Hey, Sorry to bother you again. I'm not sure you know the cause of this problem (probably not) but the generate new world and save and quit buttons work perfectly in the editor, but when I build it on my phone those buttons don't do anything. Is there anything like PC specific thats in the code for those buttons?