Ejemplo n.º 1
0
    /// <summary>
    /// 加载英雄预设成功
    /// </summary>
    /// <param name="abName"></param>
    /// <param name="obj"></param>
    /// <param name="param"></param>
    void LoadComplete(string abName, GameObject obj, object param)
    {
        UIGridItem trans = param as UIGridItem;

        obj.transform.parent = trans.mScripts[3].transform;
        GUIManager.ChangeLayer(obj, "UI");
        trans.GetComponent <UIGridItem>().mScripts[2]  = obj.GetComponent <CreateSpineAni>();
        obj.GetComponent <CreateSpineAni>().SpineScale = Vector3.one * 2;
        obj.GetComponent <BoxCollider>().enabled       = false;
        obj.transform.localPosition = new Vector3(0, -212, 0);
    }