升级框架版本

This commit is contained in:
Bob.Song
2025-11-12 17:24:02 +08:00
parent 4059c207c0
commit 5e6119a073
2246 changed files with 6233 additions and 313 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
using FairyGUI;
public class CoolComponent : GComponent
{
public override void ConstructFromXML(FairyGUI.Utils.XML cxml)
{
base.ConstructFromXML(cxml);
GGraph graph = this.GetChild("effect").asGraph;
Object prefab = Resources.Load("Flame");
GameObject go = (GameObject)Object.Instantiate(prefab);
graph.SetNativeObject(new GoWrapper(go));
}
}