Skip to content

Commit

Permalink
Fixed: Quit button not appearing in mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetro48 committed Jun 20, 2021
1 parent 4871bc7 commit 3a98a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/MenuEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class MenuEngine : MonoBehaviour
Language previousLang;
public void QuitGame()
{
if (platformCompat() || Application.platform == RuntimePlatform.Android || Application.platform != RuntimePlatform.IPhonePlayer) quitting = true;
if (platformCompat() || Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer) quitting = true;
}
public void TriggerGameOver()
{
Expand Down Expand Up @@ -247,7 +247,7 @@ void Start()
reswidth = (float)(Screen.width / 1920.0);
settingsMenuGUI[0].SetActive(false);
settingsMenuGUIpart[0].SetActive(false);
if(Application.platform != RuntimePlatform.Android || Application.platform != RuntimePlatform.IPhonePlayer)mainMenuGUI[2].SetActive(false);
if(Application.platform != RuntimePlatform.Android && Application.platform != RuntimePlatform.IPhonePlayer)mainMenuGUI[2].SetActive(false);
}
starting = true;
if (Application.systemLanguage == SystemLanguage.Russian)
Expand Down

0 comments on commit 3a98a79

Please sign in to comment.