Skip to content

Commit 3889d46

Browse files
committed
Fix : Build Setting and set Resolution
1 parent 071cd9a commit 3889d46

File tree

6 files changed

+35
-17
lines changed

6 files changed

+35
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ crashlytics-build.properties
7373
# Custom Ignore folder
7474
/[Aa]ssets/BuildingSaved/*
7575
.vscode/extensions.json
76+
Recordings/

Assets/Scenes/ChooseBuildingScene.unity

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1}
41+
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
4242
m_UseRadianceAmbientProbe: 0
4343
--- !u!157 &3
4444
LightmapSettings:
@@ -802,7 +802,7 @@ RectTransform:
802802
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
803803
m_AnchorMin: {x: 0.5, y: 0.5}
804804
m_AnchorMax: {x: 0.5, y: 0.5}
805-
m_AnchoredPosition: {x: 0.56152, y: -657.92}
805+
m_AnchoredPosition: {x: 0.56152, y: -549}
806806
m_SizeDelta: {x: 1080, y: 184.1597}
807807
m_Pivot: {x: 0.5, y: 0.5}
808808
--- !u!114 &674033214
@@ -1285,10 +1285,10 @@ MonoBehaviour:
12851285
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
12861286
m_Name:
12871287
m_EditorClassIdentifier:
1288-
m_UiScaleMode: 0
1288+
m_UiScaleMode: 1
12891289
m_ReferencePixelsPerUnit: 100
12901290
m_ScaleFactor: 1
1291-
m_ReferenceResolution: {x: 800, y: 600}
1291+
m_ReferenceResolution: {x: 1080, y: 1920}
12921292
m_ScreenMatchMode: 0
12931293
m_MatchWidthOrHeight: 0
12941294
m_PhysicalUnit: 3

Assets/Scripts/BuildingManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private void Awake()
1717
}
1818
void Start()
1919
{
20-
20+
2121
}
2222

2323
// Update is called once per frame
@@ -27,6 +27,7 @@ void Update()
2727

2828
internal void DisposeBuilding()
2929
{
30+
#if UNITY_EDITOR
3031
string[] arr = AssetDatabase.FindAssets("", new string[] { "Assets/BuildingSaved" });
3132
count = 0;
3233
foreach (string str in arr)
@@ -37,6 +38,7 @@ internal void DisposeBuilding()
3738
Quaternion.Euler(0, 135, 0)));
3839
count++;
3940
}
41+
#endif
4042
}
4143

4244
public IEnumerator destroyBuilding(int index)

Assets/Scripts/GameManager.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ private void Awake()
3737

3838
private void Start()
3939
{
40+
Screen.SetResolution(540, 960, false);
4041
cam = GameObject.Find("@Main Camera").GetComponent<CameraController>();
4142
CubesToBeSaved = new List<GameObject>();
4243
}
@@ -53,42 +54,43 @@ void Update()
5354

5455
if (!isEnd)
5556
{
56-
57+
5758
cam.CameraMoveUp();
5859

5960
spawnerIndex = spawnerIndex == 0 ? 1 : 0;
6061
currentSpawner = spawners[spawnerIndex];
6162

6263
currentSpawner.SpawnCube();
6364
}
64-
65+
6566
}
6667
}
6768

6869
public void GameStart()
6970
{
7071
isStart = true;
71-
72+
7273
cam.CameraMoveUp();
7374

7475
spawnerIndex = spawnerIndex == 0 ? 1 : 0;
7576
currentSpawner = spawners[spawnerIndex];
76-
77+
7778
currentSpawner.SpawnCube();
78-
79-
uiManager.mainUIController.GameStart();
79+
80+
uiManager.mainUIController.GameStart();
8081
}
8182

8283
public void GameRestart()
8384
{
8485
LoadScene();
8586
}
86-
87+
8788

8889
internal void AddCubeToBeSaved(GameObject gameObject) => CubesToBeSaved.Add(gameObject);
8990

9091
internal void SaveAllCubes()
9192
{
93+
#if UNITY_EDITOR
9294
if (CubesToBeSaved.Count != 0)
9395
{
9496
Debug.Log("Save");
@@ -108,11 +110,12 @@ internal void SaveAllCubes()
108110
{
109111
Debug.Log("저장할 큐브가 존재하지 않습니다");
110112
}
113+
#endif
111114
}
112115

113116
internal void EndGame()
114117
{
115-
118+
116119
isEnd = true;
117120
uiManager.mainUIController.GameOver();
118121

Assets/Scripts/SelfDestroy.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProjectSettings/ProjectSettings.asset

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ PlayerSettings:
4242
m_SplashScreenLogos: []
4343
m_VirtualRealitySplashScreen: {fileID: 0}
4444
m_HolographicTrackingLossScreen: {fileID: 0}
45-
defaultScreenWidth: 1024
46-
defaultScreenHeight: 768
45+
defaultScreenWidth: 540
46+
defaultScreenHeight: 960
4747
defaultScreenWidthWeb: 960
4848
defaultScreenHeightWeb: 600
4949
m_StereoRenderingPath: 0
@@ -93,7 +93,7 @@ PlayerSettings:
9393
xboxEnableFitness: 0
9494
visibleInBackground: 1
9595
allowFullscreenSwitch: 1
96-
fullscreenMode: 1
96+
fullscreenMode: 3
9797
xboxSpeechDB: 0
9898
xboxEnableHeadOrientation: 0
9999
xboxEnableGuest: 0
@@ -145,7 +145,8 @@ PlayerSettings:
145145
resolutionScalingMode: 0
146146
androidSupportedAspectRatio: 1
147147
androidMaxAspectRatio: 2.1
148-
applicationIdentifier: {}
148+
applicationIdentifier:
149+
Standalone: com.DefaultCompany.StackGame
149150
buildNumber:
150151
Standalone: 0
151152
iPhone: 0

0 commit comments

Comments
 (0)