Skip to content

Commit 630ad20

Browse files
committed
update Ver 2.0.1
1 parent 8ad96c0 commit 630ad20

File tree

263 files changed

+19754
-1333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+19754
-1333
lines changed

.vs/UnityPathGenerator/v16/.suo

421 KB
Binary file not shown.

Assets/Editor.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Editor/PathGenerator/PathFollwerGUI.cs

+143-88
Large diffs are not rendered by default.

Assets/Editor/PathGenerator/PathGeneratorGUI.cs

+1,175-693
Large diffs are not rendered by default.

Assets/Editor/PathGenerator/PathGeneratorGUILanguage.cs

+75-41
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,81 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
3-
using UnityEngine;
4-
//==========================================================================================================================================================================
5-
/* ,------. ,---. ,--------.,--. ,--. ,----. ,------.,--. ,--.,------.,------. ,---. ,--------. ,-----. ,------.
6-
| .--. ' / O \'--. .--'| '--' | ' .-./ | .---'| ,'.| || .---'| .--. ' / O \'--. .--'' .-. '| .--. '
7-
| '--' || .-. | | | | .--. | | | .---.| `--, | |' ' || `--, | '--'.'| .-. | | | | | | || '--'.'
8-
| | --' | | | | | | | | | | ' '--' || `---.| | ` || `---.| |\ \ | | | | | | ' '-' '| |\ \
9-
`--' `--' `--' `--' `--' `--' `------' `------'`--' `--'`------'`--' '--'`--' `--' `--' `-----' `--' '--' */
10-
//=========================================================================================================================================================================
1+
//==========================================================================================================================================
2+
// ,------. ,---. ,--------.,--. ,--. ,----. ,------.,--. ,--.,------.,------. ,---. ,--------. ,-----. ,------.
3+
// | .--. ' / O \'--. .--'| '--' | ' .-./ | .---'| ,'.| || .---'| .--. ' / O \'--. .--'' .-. '| .--. '
4+
// | '--' || .-. | | | | .--. | | | .---.| `--, | |' ' || `--, | '--'.'| .-. | | | | | | || '--'.'
5+
// | | --' | | | | | | | | | | ' '--' || `---.| | ` || `---.| |\ \ | | | | | | ' '-' '| |\ \
6+
// `--' `--' `--' `--' `--' `--' `------' `------'`--' `--'`------'`--' '--'`--' `--' `--' `-----' `--' '--'
7+
//=========================================================================================================================================
118
//
129
// PATH GENERATOR GUI LANGUAGE CLASS
1310
//
1411
// GUI language management class
1512
// GUI 언어 관리 클래스
1613
//
17-
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18-
// 2022.11.29 _ KimYC1223
19-
//=========================================================================================================================================================================
20-
namespace CurvedPathGenertator {
14+
//-----------------------------------------------------------------------------------------------------------------------------------------
15+
// 2022.11.04 _ KimYC1223
16+
//=========================================================================================================================================
17+
using System.Collections.Generic;
2118

22-
//=====================================================================================================================================================================
19+
namespace CurvedPathGenertator
20+
{
21+
//=====================================================================================================================================
2322
// Supported languages | Chinese support coming soon
2423
// 지원되는 언어 | 중국어 지원 추가 예정
25-
//=====================================================================================================================================================================
26-
public enum LANGUAGE { ENG, KOR, JAP };
27-
28-
public class PathGeneratorGUILanguage {
24+
//=====================================================================================================================================
25+
/// <summary>
26+
/// Supported languages
27+
/// </summary>
28+
public enum LANGUAGE
29+
{ ENG, KOR, JAP };
30+
31+
/// <summary>
32+
/// PATH GENERATOR GUI LANGUAGE CLASS
33+
/// </summary>
34+
public class PathGeneratorGUILanguage
35+
{
36+
/// <summary>
37+
/// currently set language
38+
/// </summary>
2939
public static LANGUAGE CurrentLanguage = LANGUAGE.ENG;
3040

31-
static Dictionary<string, string> ENG_TEXT;
32-
static Dictionary<string, string> KOR_TEXT;
33-
static Dictionary<string, string> JAP_TEXT;
41+
/// <summary>
42+
/// english text key-value dictionary
43+
/// </summary>
44+
private static Dictionary<string, string> ENG_TEXT;
3445

35-
//=================================================================================================================================================================
46+
/// <summary>
47+
/// Korean text key-value dictionary
48+
/// </summary>
49+
private static Dictionary<string, string> KOR_TEXT;
50+
51+
/// <summary>
52+
/// Japanese text key-value dictionary
53+
/// </summary>
54+
private static Dictionary<string, string> JAP_TEXT;
55+
56+
//=================================================================================================================================
3657
// Init Localization method
37-
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
58+
//---------------------------------------------------------------------------------------------------------------------------------
3859
// Initialize language-specific Dictionary variables
3960
// 언어별 Dictionary 변수 초기화
40-
//=================================================================================================================================================================
41-
static public void InitLocalization() {
61+
//=================================================================================================================================
62+
/// <summary>
63+
/// Initialize language-specific Dictionary variables
64+
/// </summary>
65+
public static void InitLocalization()
66+
{
4267
string key_text;
43-
if (ENG_TEXT != null && KOR_TEXT != null && JAP_TEXT != null)
68+
if ( ENG_TEXT != null && KOR_TEXT != null && JAP_TEXT != null )
4469
return;
4570

4671
ENG_TEXT = new Dictionary<string, string>();
4772
KOR_TEXT = new Dictionary<string, string>();
4873
JAP_TEXT = new Dictionary<string, string>();
4974

50-
//=============================================================================================================================================================
75+
//=============================================================================================================================
5176
// [PG] Path Generator GUI text settings
5277
// [PG] Path Generator GUI 텍스트 설정
53-
//=============================================================================================================================================================
78+
//=============================================================================================================================
5479
key_text = "PG_Title";
5580
ENG_TEXT.Add(key_text, "Curved Path Generator");
5681
KOR_TEXT.Add(key_text, "곡선 경로 생성기");
@@ -107,9 +132,9 @@ static public void InitLocalization() {
107132
JAP_TEXT.Add(key_text, "エディタ関連");
108133

109134
key_text = "PG_PathTypeChangeButton_isLivePathWarning";
110-
ENG_TEXT.Add(key_text, "Updates the path every frame. Therefore, even if the node or angle changes position at runtime,"+
135+
ENG_TEXT.Add(key_text, "Updates the path every frame. Therefore, even if the node or angle changes position at runtime," +
111136
"it is applied to the path immediately. However, the amount of calculation may increase.");
112-
KOR_TEXT.Add(key_text, "매 프레임마다 경로를 업데이트 합니다. 따라서, 런타임에서 Node나 Angle의 위치가 바뀌어도"+
137+
KOR_TEXT.Add(key_text, "매 프레임마다 경로를 업데이트 합니다. 따라서, 런타임에서 Node나 Angle의 위치가 바뀌어도" +
113138
"즉시 경로에 적용됩니다. 다만 계산량이 많아 질 수 있습니다.");
114139
JAP_TEXT.Add(key_text, "フレームごとにパスを更新します。 したがって、ランタイムでノードやアングルの" +
115140
"位置が変わっても直ちに経路に適用されます。 ただし、計算量が多くなる可能性があります。");
@@ -349,10 +374,10 @@ static public void InitLocalization() {
349374
KOR_TEXT.Add(key_text, "렌더 큐의 기본값은 3000입니다.");
350375
JAP_TEXT.Add(key_text, "レンダリング キューのデフォルト値は 3000 です。");
351376

352-
//=============================================================================================================================================================
377+
//=============================================================================================================================
353378
// [PF] Path Follower GUI text settings
354379
// [PF] Path Follower GUI 텍스트 설정
355-
//=============================================================================================================================================================
380+
//=============================================================================================================================
356381
key_text = "PF_Title";
357382
ENG_TEXT.Add(key_text, "Curved Path Follower");
358383
KOR_TEXT.Add(key_text, "곡선 경로 팔로워");
@@ -424,21 +449,30 @@ static public void InitLocalization() {
424449
JAP_TEXT.Add(key_text, "メソッドを実行");
425450
}
426451

427-
//=================================================================================================================================================================
452+
//=================================================================================================================================
428453
// Get Local Text
429-
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
454+
//---------------------------------------------------------------------------------------------------------------------------------
430455
// Text output corresponding to the set language
431456
// 설정된 언어에 해당하는 텍스트 출력
432-
//=================================================================================================================================================================
433-
static public string GetLocalText(string key_text) {
434-
try{
435-
if (CurrentLanguage == LANGUAGE.KOR)
457+
//=================================================================================================================================
458+
/// <summary>
459+
/// Text output corresponding to the set language
460+
/// </summary>
461+
/// <param name="key_text">text key</param>
462+
/// <returns>translated text</returns>
463+
public static string GetLocalText(string key_text)
464+
{
465+
try
466+
{
467+
if ( CurrentLanguage == LANGUAGE.KOR )
436468
return KOR_TEXT[key_text];
437-
else if (CurrentLanguage == LANGUAGE.JAP)
469+
else if ( CurrentLanguage == LANGUAGE.JAP )
438470
return JAP_TEXT[key_text];
439471
else
440472
return ENG_TEXT[key_text];
441-
} catch (System.Exception e) {
473+
}
474+
catch ( System.Exception e )
475+
{
442476
e.ToString();
443477
return "";
444478
}

Assets/Gizmos.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Gizmos/PathGenerator.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Gizmos/PathGenerator/PG_Anchor.PNG.meta

+24-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Gizmos/PathGenerator/PG_End.PNG.meta

+29-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)