-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set screen resolution on 0.5s after startup
- Loading branch information
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections; | ||
using UnityEngine; | ||
|
||
namespace ProjectBlue.RepulserEngine | ||
{ | ||
public class ScreenResolutionManager : MonoBehaviour | ||
{ | ||
private void Start() | ||
{ | ||
StartCoroutine(Delay()); | ||
} | ||
|
||
private IEnumerator Delay() | ||
{ | ||
yield return new WaitForSeconds(0.5f); | ||
|
||
Screen.SetResolution(1280, 720, false); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.