Showing
3 changed files
with
50 additions
and
0 deletions
Runtime/Demo.asmdef
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "com.kiwifungames.package.demo", | ||
| 3 | + "rootNamespace": "", | ||
| 4 | + "references": [], | ||
| 5 | + "includePlatforms": [], | ||
| 6 | + "excludePlatforms": [], | ||
| 7 | + "allowUnsafeCode": false, | ||
| 8 | + "overrideReferences": false, | ||
| 9 | + "precompiledReferences": [], | ||
| 10 | + "autoReferenced": true, | ||
| 11 | + "defineConstraints": [], | ||
| 12 | + "versionDefines": [], | ||
| 13 | + "noEngineReferences": false | ||
| 14 | +} |
Runtime/Demo.cs
0 → 100644
| 1 | +using System; | ||
| 2 | +using UnityEngine.UI; | ||
| 3 | + | ||
| 4 | +namespace Kiwifungames.UnityPackageDemo | ||
| 5 | +{ | ||
| 6 | + public class LevelDemo : MonoBehaviour | ||
| 7 | + { | ||
| 8 | + public const int VERSION_CODE = 1; | ||
| 9 | + | ||
| 10 | + [SerializeField] | ||
| 11 | + private Text m_TextVersion; | ||
| 12 | + void Start() | ||
| 13 | + { | ||
| 14 | + if (m_TextVersion != null) | ||
| 15 | + { | ||
| 16 | + m_TextVersion.text = $"VersionCode: {VERSION_CODE}"; | ||
| 17 | + } | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + void Update() | ||
| 21 | + { | ||
| 22 | + | ||
| 23 | + } | ||
| 24 | + } | ||
| 25 | +} |
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "com.kiwifungames.unitypackage.demo", | ||
| 3 | + "displayName": "UnityPackageDemo", | ||
| 4 | + "version": "1.0.0", | ||
| 5 | + "description": "Demo Package", | ||
| 6 | + "author": { | ||
| 7 | + "name": "Young", | ||
| 8 | + "email": "young@kiwifungames.com", | ||
| 9 | + "url": "http://mygitlab.daimaodiary.com/dashboard/projects" | ||
| 10 | + } | ||
| 11 | + } |
-
Please register or login to post a comment