Skip to content

Commit 6c9a8db

Browse files
committed
style: convention
1 parent 50d6ea0 commit 6c9a8db

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Assets/JCSUnity/Scripts/Managers/JCS_ScreenManager.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public class JCS_ScreenManager : JCS_Manager<JCS_ScreenManager>
4545
[Separator("Initialize Variables (JCS_ScreenManager)")]
4646

4747
[Tooltip("Resize screen once on this scene?")]
48-
public bool RESIZE_SCREEN_THIS_SCENE = false;
48+
public bool resizeScreen = false;
4949

5050
[Tooltip("Aspect ratio screen width for this scene you want to resize.")]
51-
public int ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE = 16;
51+
public int aspectRatioWidth = 16;
5252

5353
[Tooltip("Aspect ratio screen height for this scene you want to resize.")]
54-
public int ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE = 9;
54+
public int aspectRatioHeight = 9;
5555

5656
/* Setter & Getter */
5757

@@ -86,11 +86,11 @@ private void Start()
8686
{
8787
var ss = JCS_ScreenSettings.FirstInstance();
8888

89-
if (RESIZE_SCREEN_THIS_SCENE)
89+
if (resizeScreen)
9090
{
9191
// Apply new screen aspect ratio.
92-
ss.aspectRatioSize.width = ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE;
93-
ss.aspectRatioSize.height = ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE;
92+
ss.aspectRatioSize.width = aspectRatioWidth;
93+
ss.aspectRatioSize.height = aspectRatioHeight;
9494

9595
// Resize the screen base on the new screen aspect ratio.
9696
ss.ForceAspectScreenOnce();

docs/ScriptReference/Managers/JCS_ScreenManager.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Manages screen action.
44

55
## Variables
66

7-
| Name | Description |
8-
|:---------------------------------------|:--------------------------------------------------------------|
9-
| RESIZE_SCREEN_THIS_SCENE | Resize screen once on this scene? |
10-
| ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE | Aspect ratio screen width for this scene you want to resize. |
11-
| ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE | Aspect ratio screen height for this scene you want to resize. |
7+
| Name | Description |
8+
|:------------------|:--------------------------------------------------------------|
9+
| resizeScreen | Resize screen once on this scene? |
10+
| aspectRatioWidth | Aspect ratio screen width for this scene you want to resize. |
11+
| aspectRatioHeight | Aspect ratio screen height for this scene you want to resize. |
1212

1313
## Functions
1414

0 commit comments

Comments
 (0)