Improve this, don't know why it wasn't there anyways
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -44,6 +44,7 @@ public class AutoGamePlayer : MonoBehaviour {
|
||||
|
||||
void Awake() {
|
||||
Instance = this;
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
}
|
||||
|
||||
void Start() {
|
||||
@@ -53,7 +54,6 @@ public class AutoGamePlayer : MonoBehaviour {
|
||||
Cursor.visible = false;
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
backgroundMusic.volume = BazookaManager.Instance.GetSettingMusicVolume();
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
if (Application.isMobilePlatform) pauseButton.gameObject.SetActive(true);
|
||||
UpdateStats(0, 1);
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ public class CustomGamePlayer : MonoBehaviour {
|
||||
|
||||
void Awake() {
|
||||
Instance = this;
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
}
|
||||
|
||||
void Start() {
|
||||
@@ -149,7 +150,6 @@ public class CustomGamePlayer : MonoBehaviour {
|
||||
Cursor.visible = false;
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
backgroundMusic.volume = BazookaManager.Instance.GetSettingMusicVolume();
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
if (Application.isMobilePlatform) mobileButtons.SetActive(true);
|
||||
UpdateStats(0, 1);
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ public class GamePlayer : MonoBehaviour {
|
||||
|
||||
void Awake() {
|
||||
Instance = this;
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
}
|
||||
|
||||
void Start() {
|
||||
@@ -133,7 +134,6 @@ public class GamePlayer : MonoBehaviour {
|
||||
Cursor.visible = false;
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
backgroundMusic.volume = BazookaManager.Instance.GetSettingMusicVolume();
|
||||
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
|
||||
if (Application.isMobilePlatform) mobileButtons.SetActive(true);
|
||||
UpdateStats(0, 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user