Пример #1
0
 public static AssetScriptsMgr getIns()
 {
     if (_ins == null)
     {
         _ins = new AssetScriptsMgr();
     }
     return(_ins);
 }
Пример #2
0
 /// <summary>
 /// 绑定物体上所有脚本关系
 /// </summary>
 /// <param name="rootObjName"></param>
 void bindScripts(Object rootObj)
 {
     AssetScriptsMgr.AssetScriptRelationship relation = AssetScriptsMgr.getIns().getAssetScriptRelationship(rootObj.name);
     if (relation != null)
     {
         relation.BindScripts(rootObj);
     }
     else
     {
         Debug.Log("no relationship on this obj:" + rootObj.name);
     }
 }