diff --git a/Assets/Scenes/Repulser.unity b/Assets/Scenes/Repulser.unity index 1bb3ce1..be0dc8e 100644 --- a/Assets/Scenes/Repulser.unity +++ b/Assets/Scenes/Repulser.unity @@ -7472,7 +7472,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 1270, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &459597252 MonoBehaviour: @@ -17164,7 +17164,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 800, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &1147569779 @@ -21266,6 +21266,7 @@ GameObject: - component: {fileID: 1460004942} - component: {fileID: 1460004941} - component: {fileID: 1460004943} + - component: {fileID: 1460004944} m_Layer: 0 m_Name: SceneContext m_TagString: Untagged @@ -21331,6 +21332,18 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a7698e59a37e7e341b3e7519a0477a62, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!114 &1460004944 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1460004940} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 544c8f1b2bda89c40a1c2c0d2e888241, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1468837318 GameObject: m_ObjectHideFlags: 0 @@ -23240,7 +23253,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 340, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &1576998453 @@ -25095,7 +25108,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 340, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &1705774458 diff --git a/Assets/Scripts/1_Installers/MasterInstaller.cs b/Assets/Scripts/1_Installers/MasterInstaller.cs index b03e0f3..c67bb28 100644 --- a/Assets/Scripts/1_Installers/MasterInstaller.cs +++ b/Assets/Scripts/1_Installers/MasterInstaller.cs @@ -1,7 +1,6 @@ using ProjectBlue.RepulserEngine.Controllers; using ProjectBlue.RepulserEngine.Domain.UseCase; using ProjectBlue.RepulserEngine.Repository; -using UnityEngine; using Zenject; namespace ProjectBlue.RepulserEngine.Installers @@ -65,8 +64,6 @@ public override void InstallBindings() Container.BindInterfacesAndSelfTo().AsSingle().NonLazy(); Container.BindInterfacesAndSelfTo().AsSingle().NonLazy(); - - Screen.SetResolution(1280, 720, false); } } } \ No newline at end of file diff --git a/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs b/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs new file mode 100644 index 0000000..0263bd9 --- /dev/null +++ b/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs @@ -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); + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs.meta b/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs.meta new file mode 100644 index 0000000..71c9558 --- /dev/null +++ b/Assets/Scripts/5_FrameworksAndDrivers/View/ScreenResolutionManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 544c8f1b2bda89c40a1c2c0d2e888241 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: