代码导出工具

This commit is contained in:
2025-07-16 18:10:09 +08:00
parent 60c1185b87
commit d12748e532
5 changed files with 133 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using CreatGame.UI;
using UnityEngine;
using UnityEngine.UI;
namespace CreatGame.UI
{
public class UIMainView : UIViewBase
{
/// <summary>
///
/// </summary>
public Button StarBtn;
/// <summary>
///
/// </summary>
public Text StarBtnText;
public override void PreLoad(GameObject view)
{
base.PreLoad(view);
StarBtn = GetGameObject(nameof(StarBtn)).GetComponent<Button>();
StarBtnText = GetGameObject(nameof(StarBtnText)).GetComponent<Text>();
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8c5ae2248a663cd4f9fc66ca55751f19
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: