Options Menu

This commit is contained in:
brausjonas
2023-03-31 22:21:29 +02:00
parent 5cbb59e60c
commit 6b82731219
27 changed files with 2373 additions and 554 deletions
@@ -25,10 +25,6 @@ public class StartHandler : MonoBehaviour
private string roomcode;
int width = Screen.width;
int height = Screen.height;
private float divisionLevel = 1;
private void Start()
{
@@ -176,16 +172,5 @@ public class StartHandler : MonoBehaviour
stream.Write(new byte[] { 126, 0, 0, 0, 0, 0, 0, 0, 0, 0 });
}
public void OnQualitySliderChanged(float value)
{
divisionLevel = value;
}
public void ButtonApply()
{
if (Application.platform == RuntimePlatform.Android)
{
Screen.SetResolution(width / (int)divisionLevel, height / (int)divisionLevel, Screen.fullScreen);
}
}
}