示例#1
0
文件: Card.cs 项目: yinlei/Fishing
    public override void ConstructFromXML(FairyGUI.Utils.XML xml)
    {
        base.ConstructFromXML(xml);

        _back = GetChild("n0");
        _front = GetChild("icon");
        _front.visible = false;
    }
示例#2
0
    public override void ConstructFromXML(FairyGUI.Utils.XML cxml)
    {
        base.ConstructFromXML(cxml);

        _timeText = this.GetChild("timeText").asTextField;
        _readController = this.GetController("IsRead");
        _fetchController = this.GetController("c1");
        _trans = this.GetTransition("t0");
    }
示例#3
0
    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));
    }
示例#4
0
    public override void ConstructFromXML(FairyGUI.Utils.XML xml)
    {
        base.ConstructFromXML(xml);

        _obj = this.GetChild("n1");
    }