/*
     * 待编辑特效相关函数
     */

    //设置编辑目标特效
    public bool SetEditTarget(GameObject go)
    {
        SpecialEffect newSpe = go.GetComponent <SpecialEffect>();

        if (newSpe == null)
        {
            return(false);
        }

        RetargetSpeToOldTarget();

        Object prefab = null;

        //若打开特效为Prefab
        if (PrefabUtility.GetPrefabType(go) == PrefabType.Prefab)
        {
            //GameObject speInst = PrefabUtility.InstantiatePrefab(go) as GameObject;
            GameObject speInst = GameObject.Instantiate(go) as GameObject;
            prefab = go;
            newSpe = speInst.GetComponent <SpecialEffect>();
        }

        targetSpe = new SpecialEffectEditProxy(newSpe, prefab, true);
        targetSpe.ShowSpecialEffectInspector();

        NotifyEditTargetChange();
        return(true);
    }
    public void ShowSelectRefSpeInspector(int i)
    {
        SpecialEffectEditProxy refSpe = refSpeMgr.GetAt(i);

        if (refSpe != null)
        {
            refSpe.ShowSpecialEffectInspector();
        }
    }