-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated version number and displaying version in Main Menu
- Loading branch information
1 parent
4676d63
commit d7cd8a7
Showing
4 changed files
with
208 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ODIN-SampleProject/Assets/ODIN-Sample/Scripts/Runtime/GameLogic/ApplicationVersionView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using TMPro; | ||
using UnityEngine; | ||
using UnityEngine.Assertions; | ||
|
||
namespace ODIN_Sample.Scripts.Runtime.GameLogic | ||
{ | ||
[RequireComponent(typeof(TMP_Text))] | ||
public class ApplicationVersionView : MonoBehaviour | ||
{ | ||
private TMP_Text _text; | ||
|
||
private void Awake() | ||
{ | ||
_text = GetComponent<TMP_Text>(); | ||
Assert.IsNotNull(_text); | ||
|
||
_text.text = "v"+Application.version; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...SampleProject/Assets/ODIN-Sample/Scripts/Runtime/GameLogic/ApplicationVersionView.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters