You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
420 B
C#
17 lines
420 B
C#
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));
|
|
}
|
|
}
|