首次提交

This commit is contained in:
Bob.Song
2026-03-05 18:07:55 +08:00
commit e125bb869e
4534 changed files with 563920 additions and 0 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));
}
}