버전 표시 기능 추가
This commit is contained in:
23
Gameton-06/Assets/Gameton/Scripts/UI/Version.cs
Normal file
23
Gameton-06/Assets/Gameton/Scripts/UI/Version.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
public class Version : MonoBehaviour
|
||||
{
|
||||
private TextMeshProUGUI versionText;
|
||||
|
||||
void Start()
|
||||
{
|
||||
// TextMesh Pro UI 텍스트 컴포넌트
|
||||
versionText = GetComponent<TextMeshProUGUI>();
|
||||
|
||||
// Application.version을 사용하여 버전을 표시
|
||||
versionText.text = "Version: " + Application.version;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Gameton-06/Assets/Gameton/Scripts/UI/Version.cs.meta
Normal file
11
Gameton-06/Assets/Gameton/Scripts/UI/Version.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c87d032fa0d5b943a169321b05d3eff
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user