导入R3,简单实现数据绑定UI,以及双向绑定

This commit is contained in:
2025-11-05 05:16:06 +08:00
parent 1ccc7f299d
commit c5c380d170
137 changed files with 6900 additions and 24 deletions

View File

@@ -33,7 +33,7 @@ public class MessageBox : MonoBehaviour
return null;
}
var go = Instantiate(prefab, GameManager.Inst.MainUICanvas.transform.Find("Top"));
var go = Instantiate(prefab, MainUICanvas.Inst.Top);
go.name = "MessageBox";
var messageBox = go.GetComponent<MessageBox>();
return messageBox;