From b042ae93eae30262ad6081cee15c60991ab3ca3c Mon Sep 17 00:00:00 2001 From: JenChieh Date: Mon, 29 Apr 2024 15:52:15 -0700 Subject: [PATCH] feat: Use shorter app name --- .../Scripts/Actions/2D/AI/JCS_2DDropItemAction.cs | 2 +- .../Scripts/Effects/2D/JCS_2DDestroyAnimEffect.cs | 2 +- .../Scripts/Effects/3D/JCS_3DDestroyAnimEffect.cs | 2 +- .../Effects/Destroy/JCS_DestroyParticleEffect.cs | 2 +- .../Effects/Destroy/JCS_DestroySoundEffect.cs | 2 +- .../Effects/Destroy/JCS_DestroySpawnEffect.cs | 2 +- .../Scripts/Effects/Particle/Type/JCS_Lightning.cs | 2 +- .../Scripts/Events/JCS_OnDestroyPlaySoundEvent.cs | 2 +- .../JCSUnity/Scripts/Events/JCS_SplitSpawnEvent.cs | 2 +- ...ationOnLoadEvent.cs => JCS_QuitAppOnLoadEvent.cs} | 4 ++-- ...dEvent.cs.meta => JCS_QuitAppOnLoadEvent.cs.meta} | 0 .../{JCS_ApplicationManager.cs => JCS_AppManager.cs} | 12 ++++++------ ...icationManager.cs.meta => JCS_AppManager.cs.meta} | 0 .../JCSUnity/Scripts/Managers/JCS_NetworkManager.cs | 2 +- Assets/JCSUnity/Scripts/Managers/JCS_PatchManager.cs | 2 +- Assets/JCSUnity/Scripts/Managers/JCS_SceneManager.cs | 2 +- Assets/JCSUnity/Scripts/SaveLoad/JCS_AppData.cs | 2 +- ...JCS_ApplicationSettings.cs => JCS_AppSettings.cs} | 12 ++++++------ ...ationSettings.cs.meta => JCS_AppSettings.cs.meta} | 0 .../JCSUnity/Scripts/Settings/JCS_ScreenSettings.cs | 4 ++-- .../Scripts/UI/Button/Scene/JCS_LoadSceneButton.cs | 2 +- .../UI/Button/Scene/JCS_LoadSceneGamePadButton.cs | 2 +- .../Scripts/UI/GameWindow/JCS_BaseDialogueObject.cs | 2 +- .../Scripts/UI/GameWindow/JCS_DialogueObject.cs | 2 +- Assets/JCSUnity/Scripts/UI/JCS_ButtonFunctions.cs | 4 ++-- Assets/JCSUnity/Scripts/UI/Language/JCS_LangText.cs | 4 ++-- Assets/JCSUnity/Scripts/Util/JCS_UIUtil.cs | 4 ++-- Assets/_BossFight/Scripts/BF_PickItem.cs | 2 +- Assets/_BossFight/Scripts/Settings/BF_AppSettings.cs | 4 ++-- Assets/_Project/Scripts/Language/FT_MultiLangs.cs | 4 ++-- .../Others/{FT_ApplicationQuit.cs => FT_AppQuit.cs} | 4 ++-- ...FT_ApplicationQuit.cs.meta => FT_AppQuit.cs.meta} | 0 Assets/_RunningCrush/Scripts/RC_Player.cs | 2 +- .../_RunningCrush/Scripts/Settings/RC_AppSettings.cs | 4 ++-- ...ationOnLoadEvent.md => JCS_QuitAppOnLoadEvent.md} | 2 +- .../{JCS_ApplicationManager.md => JCS_AppManager.md} | 2 +- ...JCS_ApplicationSettings.md => JCS_AppSettings.md} | 2 +- 37 files changed, 52 insertions(+), 52 deletions(-) rename Assets/JCSUnity/Scripts/Events/System/{JCS_QuitApplicationOnLoadEvent.cs => JCS_QuitAppOnLoadEvent.cs} (82%) rename Assets/JCSUnity/Scripts/Events/System/{JCS_QuitApplicationOnLoadEvent.cs.meta => JCS_QuitAppOnLoadEvent.cs.meta} (100%) rename Assets/JCSUnity/Scripts/Managers/{JCS_ApplicationManager.cs => JCS_AppManager.cs} (95%) rename Assets/JCSUnity/Scripts/Managers/{JCS_ApplicationManager.cs.meta => JCS_AppManager.cs.meta} (100%) rename Assets/JCSUnity/Scripts/Settings/{JCS_ApplicationSettings.cs => JCS_AppSettings.cs} (88%) rename Assets/JCSUnity/Scripts/Settings/{JCS_ApplicationSettings.cs.meta => JCS_AppSettings.cs.meta} (100%) rename Assets/_Project/Scripts/Others/{FT_ApplicationQuit.cs => FT_AppQuit.cs} (86%) rename Assets/_Project/Scripts/Others/{FT_ApplicationQuit.cs.meta => FT_AppQuit.cs.meta} (100%) rename docs/ScriptReference/Events/System/{JCS_QuitApplicationOnLoadEvent.md => JCS_QuitAppOnLoadEvent.md} (59%) rename docs/ScriptReference/Managers/{JCS_ApplicationManager.md => JCS_AppManager.md} (98%) rename docs/ScriptReference/Settings/{JCS_ApplicationSettings.md => JCS_AppSettings.md} (94%) diff --git a/Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DDropItemAction.cs b/Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DDropItemAction.cs index 4882889f8..d1bbc9114 100644 --- a/Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DDropItemAction.cs +++ b/Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DDropItemAction.cs @@ -78,7 +78,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/2D/JCS_2DDestroyAnimEffect.cs b/Assets/JCSUnity/Scripts/Effects/2D/JCS_2DDestroyAnimEffect.cs index 7bad8aacd..e3c827520 100644 --- a/Assets/JCSUnity/Scripts/Effects/2D/JCS_2DDestroyAnimEffect.cs +++ b/Assets/JCSUnity/Scripts/Effects/2D/JCS_2DDestroyAnimEffect.cs @@ -129,7 +129,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/3D/JCS_3DDestroyAnimEffect.cs b/Assets/JCSUnity/Scripts/Effects/3D/JCS_3DDestroyAnimEffect.cs index a3b0eb47b..ee4983766 100644 --- a/Assets/JCSUnity/Scripts/Effects/3D/JCS_3DDestroyAnimEffect.cs +++ b/Assets/JCSUnity/Scripts/Effects/3D/JCS_3DDestroyAnimEffect.cs @@ -123,7 +123,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroyParticleEffect.cs b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroyParticleEffect.cs index c4a3e6826..4720c468f 100644 --- a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroyParticleEffect.cs +++ b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroyParticleEffect.cs @@ -126,7 +126,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySoundEffect.cs b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySoundEffect.cs index b99686622..57b1bb29d 100644 --- a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySoundEffect.cs +++ b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySoundEffect.cs @@ -59,7 +59,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySpawnEffect.cs b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySpawnEffect.cs index 4d879fefe..6ad83a793 100644 --- a/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySpawnEffect.cs +++ b/Assets/JCSUnity/Scripts/Effects/Destroy/JCS_DestroySpawnEffect.cs @@ -115,7 +115,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Effects/Particle/Type/JCS_Lightning.cs b/Assets/JCSUnity/Scripts/Effects/Particle/Type/JCS_Lightning.cs index 8d084c980..15fa37061 100644 --- a/Assets/JCSUnity/Scripts/Effects/Particle/Type/JCS_Lightning.cs +++ b/Assets/JCSUnity/Scripts/Effects/Particle/Type/JCS_Lightning.cs @@ -46,7 +46,7 @@ private void Awake() private void OnEnable() { // if app still initializing then return. - if (JCS_ApplicationManager.APP_INITIALIZING) + if (JCS_AppManager.APP_INITIALIZING) return; // when enabled play the sound and animation. diff --git a/Assets/JCSUnity/Scripts/Events/JCS_OnDestroyPlaySoundEvent.cs b/Assets/JCSUnity/Scripts/Events/JCS_OnDestroyPlaySoundEvent.cs index 34b27c92c..49c7bbc5e 100644 --- a/Assets/JCSUnity/Scripts/Events/JCS_OnDestroyPlaySoundEvent.cs +++ b/Assets/JCSUnity/Scripts/Events/JCS_OnDestroyPlaySoundEvent.cs @@ -40,7 +40,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Events/JCS_SplitSpawnEvent.cs b/Assets/JCSUnity/Scripts/Events/JCS_SplitSpawnEvent.cs index d34875844..dde62a70c 100644 --- a/Assets/JCSUnity/Scripts/Events/JCS_SplitSpawnEvent.cs +++ b/Assets/JCSUnity/Scripts/Events/JCS_SplitSpawnEvent.cs @@ -144,7 +144,7 @@ private void OnDestroy() { // if is quitting the application don't spawn object, // or else will cause memory leak! - if (JCS_ApplicationManager.APP_QUITTING) + if (JCS_AppManager.APP_QUITTING) return; // if switching the scene, don't spawn new gameObject. diff --git a/Assets/JCSUnity/Scripts/Events/System/JCS_QuitApplicationOnLoadEvent.cs b/Assets/JCSUnity/Scripts/Events/System/JCS_QuitAppOnLoadEvent.cs similarity index 82% rename from Assets/JCSUnity/Scripts/Events/System/JCS_QuitApplicationOnLoadEvent.cs rename to Assets/JCSUnity/Scripts/Events/System/JCS_QuitAppOnLoadEvent.cs index 38b06dfb6..f58ede972 100644 --- a/Assets/JCSUnity/Scripts/Events/System/JCS_QuitApplicationOnLoadEvent.cs +++ b/Assets/JCSUnity/Scripts/Events/System/JCS_QuitAppOnLoadEvent.cs @@ -1,5 +1,5 @@ /** - * $File: JCS_QuitApplicationOnLoadEvent.cs $ + * $File: JCS_QuitAppOnLoadEvent.cs $ * $Date: $ * $Revision: $ * $Creator: Jen-Chieh Shen $ @@ -13,7 +13,7 @@ namespace JCSUnity /// /// Event that will quit the application. /// - public class JCS_QuitApplicationOnLoadEvent : MonoBehaviour + public class JCS_QuitAppOnLoadEvent : MonoBehaviour { /* Variables */ diff --git a/Assets/JCSUnity/Scripts/Events/System/JCS_QuitApplicationOnLoadEvent.cs.meta b/Assets/JCSUnity/Scripts/Events/System/JCS_QuitAppOnLoadEvent.cs.meta similarity index 100% rename from Assets/JCSUnity/Scripts/Events/System/JCS_QuitApplicationOnLoadEvent.cs.meta rename to Assets/JCSUnity/Scripts/Events/System/JCS_QuitAppOnLoadEvent.cs.meta diff --git a/Assets/JCSUnity/Scripts/Managers/JCS_ApplicationManager.cs b/Assets/JCSUnity/Scripts/Managers/JCS_AppManager.cs similarity index 95% rename from Assets/JCSUnity/Scripts/Managers/JCS_ApplicationManager.cs rename to Assets/JCSUnity/Scripts/Managers/JCS_AppManager.cs index 1012322d2..2696c2751 100644 --- a/Assets/JCSUnity/Scripts/Managers/JCS_ApplicationManager.cs +++ b/Assets/JCSUnity/Scripts/Managers/JCS_AppManager.cs @@ -1,5 +1,5 @@ /** - * $File: JCS_ApplicationManager.cs $ + * $File: JCS_AppManager.cs $ * $Date: $ * $Revision: $ * $Creator: Jen-Chieh Shen $ @@ -20,7 +20,7 @@ namespace JCSUnity /// /// Manager manage application layer. /// - public class JCS_ApplicationManager : JCS_Manager + public class JCS_AppManager : JCS_Manager { /* Variables */ @@ -28,7 +28,7 @@ public class JCS_ApplicationManager : JCS_Manager public static bool APP_QUITTING = false; public static bool APP_INITIALIZING = true; - [Separator("Check Variables (JCS_ApplicationManager)")] + [Separator("Check Variables (JCS_AppManager)")] [Tooltip("Current systme language.")] [SerializeField] @@ -40,7 +40,7 @@ public class JCS_ApplicationManager : JCS_Manager [ReadOnly] private List mLangTexts = null; - [Separator("Initialize Variables (JCS_ApplicationManager)")] + [Separator("Initialize Variables (JCS_AppManager)")] [Tooltip("Request permission for camera/webcam.")] [SerializeField] @@ -54,7 +54,7 @@ public class JCS_ApplicationManager : JCS_Manager [SerializeField] private bool mRequestLocation = false; - [Separator("Runtime Variables (JCS_ApplicationManager)")] + [Separator("Runtime Variables (JCS_AppManager)")] [Tooltip("This will override platform Type.")] [SerializeField] @@ -104,7 +104,7 @@ private void OnApplicationQuit() { APP_QUITTING = true; - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; if (apps.SAVE_ON_EXIT_APP && apps.SAVE_APP_DATA_FUNC != null) { diff --git a/Assets/JCSUnity/Scripts/Managers/JCS_ApplicationManager.cs.meta b/Assets/JCSUnity/Scripts/Managers/JCS_AppManager.cs.meta similarity index 100% rename from Assets/JCSUnity/Scripts/Managers/JCS_ApplicationManager.cs.meta rename to Assets/JCSUnity/Scripts/Managers/JCS_AppManager.cs.meta diff --git a/Assets/JCSUnity/Scripts/Managers/JCS_NetworkManager.cs b/Assets/JCSUnity/Scripts/Managers/JCS_NetworkManager.cs index 2a414d05e..eb9e4083c 100644 --- a/Assets/JCSUnity/Scripts/Managers/JCS_NetworkManager.cs +++ b/Assets/JCSUnity/Scripts/Managers/JCS_NetworkManager.cs @@ -46,7 +46,7 @@ private void Update() Test(); #endif - if (JCS_ApplicationManager.APP_PAUSE) + if (JCS_AppManager.APP_PAUSE) return; CheckConnectionWithTime(); diff --git a/Assets/JCSUnity/Scripts/Managers/JCS_PatchManager.cs b/Assets/JCSUnity/Scripts/Managers/JCS_PatchManager.cs index f4432b78f..e38fae143 100644 --- a/Assets/JCSUnity/Scripts/Managers/JCS_PatchManager.cs +++ b/Assets/JCSUnity/Scripts/Managers/JCS_PatchManager.cs @@ -98,7 +98,7 @@ private void DoTimeOut() Debug.Log("Server Connection Time Out, Quit Application."); // quit the application smoothly. - JCS_ApplicationManager.instance.Quit(true); + JCS_AppManager.instance.Quit(true); } } } diff --git a/Assets/JCSUnity/Scripts/Managers/JCS_SceneManager.cs b/Assets/JCSUnity/Scripts/Managers/JCS_SceneManager.cs index 0029ca72e..85dcb06ab 100644 --- a/Assets/JCSUnity/Scripts/Managers/JCS_SceneManager.cs +++ b/Assets/JCSUnity/Scripts/Managers/JCS_SceneManager.cs @@ -313,7 +313,7 @@ public void LoadScene(string sceneName, float fadeInTime, Color screenColor, boo // set the next scene name this.mNextSceneName = sceneName; - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; if (apps.SAVE_ON_SWITCH_SCENE && apps.SAVE_APP_DATA_FUNC != null) { diff --git a/Assets/JCSUnity/Scripts/SaveLoad/JCS_AppData.cs b/Assets/JCSUnity/Scripts/SaveLoad/JCS_AppData.cs index dc6837f5d..02ba093f2 100644 --- a/Assets/JCSUnity/Scripts/SaveLoad/JCS_AppData.cs +++ b/Assets/JCSUnity/Scripts/SaveLoad/JCS_AppData.cs @@ -57,7 +57,7 @@ public bool Initialized() /// public static string SavePath() { - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; string path = JCS_Path.Combine(Application.persistentDataPath, apps.DATA_PATH); return path; } diff --git a/Assets/JCSUnity/Scripts/Settings/JCS_ApplicationSettings.cs b/Assets/JCSUnity/Scripts/Settings/JCS_AppSettings.cs similarity index 88% rename from Assets/JCSUnity/Scripts/Settings/JCS_ApplicationSettings.cs rename to Assets/JCSUnity/Scripts/Settings/JCS_AppSettings.cs index f96c6f125..fc409bffc 100644 --- a/Assets/JCSUnity/Scripts/Settings/JCS_ApplicationSettings.cs +++ b/Assets/JCSUnity/Scripts/Settings/JCS_AppSettings.cs @@ -1,5 +1,5 @@ /** - * $File: JCS_ApplicationSettings.cs $ + * $File: JCS_AppSettings.cs $ * $Date: 2018-09-08 16:51:42 $ * $Revision: $ * $Creator: Jen-Chieh Shen $ @@ -14,7 +14,7 @@ namespace JCSUnity /// /// Application settings. /// - public class JCS_ApplicationSettings : JCS_Settings + public class JCS_AppSettings : JCS_Settings { /* Variables */ @@ -25,13 +25,13 @@ public class JCS_ApplicationSettings : JCS_Settings // per application is starts. public EmptyFunction onApplicationStarts = null; - [Separator("Check Variables (JCS_ApplicationSettings)")] + [Separator("Check Variables (JCS_AppSettings)")] [Tooltip("Is the application start?")] [ReadOnly] public bool APPLICATION_STARTS = false; - [Separator("Initialize Variables (JCS_ApplicationSettings)")] + [Separator("Initialize Variables (JCS_AppSettings)")] [Tooltip("Enable to overwrite the default frame rate.")] public bool SET_FRAME_RATE = false; @@ -40,7 +40,7 @@ public class JCS_ApplicationSettings : JCS_Settings [Range(30, 120)] public int FRAME_RATE = 120; - [Separator("Runtime Variables (JCS_ApplicationSettings)")] + [Separator("Runtime Variables (JCS_AppSettings)")] [Header("- Save Load")] @@ -86,7 +86,7 @@ private void Start() /// /// old instance /// new instance - protected override void TransferData(JCS_ApplicationSettings _old, JCS_ApplicationSettings _new) + protected override void TransferData(JCS_AppSettings _old, JCS_AppSettings _new) { _new.SET_FRAME_RATE = _old.SET_FRAME_RATE; _new.FRAME_RATE = _old.FRAME_RATE; diff --git a/Assets/JCSUnity/Scripts/Settings/JCS_ApplicationSettings.cs.meta b/Assets/JCSUnity/Scripts/Settings/JCS_AppSettings.cs.meta similarity index 100% rename from Assets/JCSUnity/Scripts/Settings/JCS_ApplicationSettings.cs.meta rename to Assets/JCSUnity/Scripts/Settings/JCS_AppSettings.cs.meta diff --git a/Assets/JCSUnity/Scripts/Settings/JCS_ScreenSettings.cs b/Assets/JCSUnity/Scripts/Settings/JCS_ScreenSettings.cs index 66a5365a8..cfd5a1800 100644 --- a/Assets/JCSUnity/Scripts/Settings/JCS_ScreenSettings.cs +++ b/Assets/JCSUnity/Scripts/Settings/JCS_ScreenSettings.cs @@ -102,7 +102,7 @@ private void Awake() // This will only run once at the time when // the application is starts. - if (!JCS_ApplicationSettings.instance.APPLICATION_STARTS) + if (!JCS_AppSettings.instance.APPLICATION_STARTS) { // Calculate standard screen width and screen height. { @@ -153,7 +153,7 @@ private void Awake() private void Start() { // When first run in the application... - if (!JCS_ApplicationSettings.instance.APPLICATION_STARTS) + if (!JCS_AppSettings.instance.APPLICATION_STARTS) { Camera cam = JCS_Camera.main.GetCamera(); diff --git a/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneButton.cs b/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneButton.cs index 715b77d9d..524f8cffa 100644 --- a/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneButton.cs +++ b/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneButton.cs @@ -57,7 +57,7 @@ public override void OnClick() { // if the button and the platform are not the same, // dont load the scene and do nothing. - if (mPlatformType != JCS_ApplicationManager.instance.PlatformType) + if (mPlatformType != JCS_AppManager.instance.PlatformType) return; } diff --git a/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneGamePadButton.cs b/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneGamePadButton.cs index bae3fae08..a272f0591 100644 --- a/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneGamePadButton.cs +++ b/Assets/JCSUnity/Scripts/UI/Button/Scene/JCS_LoadSceneGamePadButton.cs @@ -57,7 +57,7 @@ public override void OnClick() { // if the button and the platform are not the same, // dont load the scene and do nothing. - if (mPlatformType != JCS_ApplicationManager.instance.PlatformType) + if (mPlatformType != JCS_AppManager.instance.PlatformType) return; } diff --git a/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_BaseDialogueObject.cs b/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_BaseDialogueObject.cs index 4e0499328..9725c6edd 100644 --- a/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_BaseDialogueObject.cs +++ b/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_BaseDialogueObject.cs @@ -111,7 +111,7 @@ public void ResetDialogue() public void Destroy() { // start the app - JCS_ApplicationManager.APP_PAUSE = false; + JCS_AppManager.APP_PAUSE = false; // destroy this dialogue Destroy(this.gameObject); diff --git a/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_DialogueObject.cs b/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_DialogueObject.cs index 5e586b92f..43e8959b3 100644 --- a/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_DialogueObject.cs +++ b/Assets/JCSUnity/Scripts/UI/GameWindow/JCS_DialogueObject.cs @@ -133,7 +133,7 @@ protected override void Start() base.Start(); // pause the app - JCS_ApplicationManager.APP_PAUSE = true; + JCS_AppManager.APP_PAUSE = true; } protected void Update() diff --git a/Assets/JCSUnity/Scripts/UI/JCS_ButtonFunctions.cs b/Assets/JCSUnity/Scripts/UI/JCS_ButtonFunctions.cs index 8c49ce427..2d8cc461e 100644 --- a/Assets/JCSUnity/Scripts/UI/JCS_ButtonFunctions.cs +++ b/Assets/JCSUnity/Scripts/UI/JCS_ButtonFunctions.cs @@ -40,7 +40,7 @@ public static void PauseGame(bool act = true) /// public static void PasueApplication(bool act = true) { - JCS_ApplicationManager.APP_PAUSE = act; + JCS_AppManager.APP_PAUSE = act; } /// @@ -50,7 +50,7 @@ public static void QuitApplication() { #if UNITY_EDITOR SceneManager.LoadScene("JCS_AppCloseSimulate"); - JCS_ApplicationManager.APP_PAUSE = true; + JCS_AppManager.APP_PAUSE = true; #endif Application.Quit(); diff --git a/Assets/JCSUnity/Scripts/UI/Language/JCS_LangText.cs b/Assets/JCSUnity/Scripts/UI/Language/JCS_LangText.cs index 0324a2107..53828be12 100644 --- a/Assets/JCSUnity/Scripts/UI/Language/JCS_LangText.cs +++ b/Assets/JCSUnity/Scripts/UI/Language/JCS_LangText.cs @@ -25,7 +25,7 @@ namespace JCSUnity /// 2. A list of language definition for correctly displays the target /// system lanauge. /// - /// 3. Register to `JCS_ApplicationManager`, its' component will take + /// 3. Register to `JCS_AppManager`, its' component will take /// case of the rest. /// public class JCS_LangText : JCS_TextObject @@ -44,7 +44,7 @@ public class JCS_LangText : JCS_TextObject private void Start() { - JCS_ApplicationManager.instance.AddLangText(this); + JCS_AppManager.instance.AddLangText(this); Refresh(); } diff --git a/Assets/JCSUnity/Scripts/Util/JCS_UIUtil.cs b/Assets/JCSUnity/Scripts/Util/JCS_UIUtil.cs index 451b307ef..a000020ae 100644 --- a/Assets/JCSUnity/Scripts/Util/JCS_UIUtil.cs +++ b/Assets/JCSUnity/Scripts/Util/JCS_UIUtil.cs @@ -50,7 +50,7 @@ public static bool IsUnityDefinedUI(Component comp) /// Text container to display language data. public static void SetLangText(JCS_LangDataList data, Text txt) { - SystemLanguage lang = JCS_ApplicationManager.instance.systemLanguage; + SystemLanguage lang = JCS_AppManager.instance.systemLanguage; foreach (JCS_LangData langData in data.LangData) { @@ -70,7 +70,7 @@ public static void SetLangText(JCS_LangDataList data, Text txt) /// Text container to display language data. public static void SetLangText(JCS_LangDataList data, TMP_Text txt) { - SystemLanguage lang = JCS_ApplicationManager.instance.systemLanguage; + SystemLanguage lang = JCS_AppManager.instance.systemLanguage; foreach (JCS_LangData langData in data.LangData) { diff --git a/Assets/_BossFight/Scripts/BF_PickItem.cs b/Assets/_BossFight/Scripts/BF_PickItem.cs index 88c0bd227..81623aae3 100644 --- a/Assets/_BossFight/Scripts/BF_PickItem.cs +++ b/Assets/_BossFight/Scripts/BF_PickItem.cs @@ -63,7 +63,7 @@ public void AfterPicked(Collider other) /// item to do the effect. public static void SetPickMode(JCS_Item jcsItem) { - var am = JCS_ApplicationManager.instance; + var am = JCS_AppManager.instance; if (am.IsPC()) { diff --git a/Assets/_BossFight/Scripts/Settings/BF_AppSettings.cs b/Assets/_BossFight/Scripts/Settings/BF_AppSettings.cs index f2fcf0dca..c83263395 100644 --- a/Assets/_BossFight/Scripts/Settings/BF_AppSettings.cs +++ b/Assets/_BossFight/Scripts/Settings/BF_AppSettings.cs @@ -54,7 +54,7 @@ private void Start() LoadAppData(); // set load and save game data - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; apps.SAVE_APP_DATA_FUNC = SaveAppData; apps.LOAD_APP_DATA_FUNC = LoadAppData; } @@ -81,7 +81,7 @@ protected override void TransferData(BF_AppSettings _old, BF_AppSettings _new) /// private void InitPath() { - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; mFullFilePath = JCS_Path.Combine(Application.persistentDataPath, apps.DATA_PATH, FILE_PATH); mFullFileName = FILE_NAME + apps.DATA_EXTENSION; diff --git a/Assets/_Project/Scripts/Language/FT_MultiLangs.cs b/Assets/_Project/Scripts/Language/FT_MultiLangs.cs index bd806bf0b..8e91b6aac 100644 --- a/Assets/_Project/Scripts/Language/FT_MultiLangs.cs +++ b/Assets/_Project/Scripts/Language/FT_MultiLangs.cs @@ -48,11 +48,11 @@ private void Awake() private void Btn1_Click() { - JCS_ApplicationManager.instance.systemLanguage = mLang1; + JCS_AppManager.instance.systemLanguage = mLang1; } private void Btn2_Click() { - JCS_ApplicationManager.instance.systemLanguage = mLang2; + JCS_AppManager.instance.systemLanguage = mLang2; } } diff --git a/Assets/_Project/Scripts/Others/FT_ApplicationQuit.cs b/Assets/_Project/Scripts/Others/FT_AppQuit.cs similarity index 86% rename from Assets/_Project/Scripts/Others/FT_ApplicationQuit.cs rename to Assets/_Project/Scripts/Others/FT_AppQuit.cs index 6c93f2099..b8c4f248a 100644 --- a/Assets/_Project/Scripts/Others/FT_ApplicationQuit.cs +++ b/Assets/_Project/Scripts/Others/FT_AppQuit.cs @@ -1,5 +1,5 @@ /** - * $File: FT_ApplicationQuit.cs $ + * $File: FT_AppQuit.cs $ * $Date: $ * $Revision: $ * $Creator: Jen-Chieh Shen $ @@ -9,7 +9,7 @@ using UnityEngine; using JCSUnity; -public class FT_ApplicationQuit: MonoBehaviour +public class FT_AppQuit: MonoBehaviour { /* Variables */ diff --git a/Assets/_Project/Scripts/Others/FT_ApplicationQuit.cs.meta b/Assets/_Project/Scripts/Others/FT_AppQuit.cs.meta similarity index 100% rename from Assets/_Project/Scripts/Others/FT_ApplicationQuit.cs.meta rename to Assets/_Project/Scripts/Others/FT_AppQuit.cs.meta diff --git a/Assets/_RunningCrush/Scripts/RC_Player.cs b/Assets/_RunningCrush/Scripts/RC_Player.cs index e0468ec58..819f5a9b7 100644 --- a/Assets/_RunningCrush/Scripts/RC_Player.cs +++ b/Assets/_RunningCrush/Scripts/RC_Player.cs @@ -209,7 +209,7 @@ private void ProcessInput() return; // process cross platform input. - switch (JCS_ApplicationManager.instance.PlatformType) + switch (JCS_AppManager.instance.PlatformType) { case JCS_PlatformType.PC: PCInput(); diff --git a/Assets/_RunningCrush/Scripts/Settings/RC_AppSettings.cs b/Assets/_RunningCrush/Scripts/Settings/RC_AppSettings.cs index e180be96c..b503c93f7 100644 --- a/Assets/_RunningCrush/Scripts/Settings/RC_AppSettings.cs +++ b/Assets/_RunningCrush/Scripts/Settings/RC_AppSettings.cs @@ -54,7 +54,7 @@ private void Start() LoadAppData(); // set load and save game data - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; apps.SAVE_APP_DATA_FUNC = SaveAppData; apps.LOAD_APP_DATA_FUNC = LoadAppData; } @@ -81,7 +81,7 @@ protected override void TransferData(RC_AppSettings _old, RC_AppSettings _new) /// private void InitPath() { - var apps = JCS_ApplicationSettings.instance; + var apps = JCS_AppSettings.instance; mFullFilePath = JCS_Path.Combine(Application.persistentDataPath, apps.DATA_PATH, FILE_PATH); mFullFileName = FILE_NAME + apps.DATA_EXTENSION; diff --git a/docs/ScriptReference/Events/System/JCS_QuitApplicationOnLoadEvent.md b/docs/ScriptReference/Events/System/JCS_QuitAppOnLoadEvent.md similarity index 59% rename from docs/ScriptReference/Events/System/JCS_QuitApplicationOnLoadEvent.md rename to docs/ScriptReference/Events/System/JCS_QuitAppOnLoadEvent.md index c9984b8b1..625266c34 100644 --- a/docs/ScriptReference/Events/System/JCS_QuitApplicationOnLoadEvent.md +++ b/docs/ScriptReference/Events/System/JCS_QuitAppOnLoadEvent.md @@ -1,3 +1,3 @@ -# JCS_QuitApplicationOnLoadEvent +# JCS_QuitAppOnLoadEvent Event quit application when on load the scene. diff --git a/docs/ScriptReference/Managers/JCS_ApplicationManager.md b/docs/ScriptReference/Managers/JCS_AppManager.md similarity index 98% rename from docs/ScriptReference/Managers/JCS_ApplicationManager.md rename to docs/ScriptReference/Managers/JCS_AppManager.md index 4d305a871..09a60246d 100644 --- a/docs/ScriptReference/Managers/JCS_ApplicationManager.md +++ b/docs/ScriptReference/Managers/JCS_AppManager.md @@ -1,4 +1,4 @@ -# JCS_ApplicationManager +# JCS_AppManager Interface communicate to application layer. diff --git a/docs/ScriptReference/Settings/JCS_ApplicationSettings.md b/docs/ScriptReference/Settings/JCS_AppSettings.md similarity index 94% rename from docs/ScriptReference/Settings/JCS_ApplicationSettings.md rename to docs/ScriptReference/Settings/JCS_AppSettings.md index 3f7f1521a..010c32e2e 100644 --- a/docs/ScriptReference/Settings/JCS_ApplicationSettings.md +++ b/docs/ScriptReference/Settings/JCS_AppSettings.md @@ -1,4 +1,4 @@ -# JCS_ApplicationSettings +# JCS_AppSettings Application related settings will be put here.