コード例 #1
0
ファイル: ResourceManager.cs プロジェクト: zjljxsc/cshotfix
        public static void Initialize(System.Action initOK)
        {
            GameObject main = GameObject.FindGameObjectWithTag("GameMain");

            m_ResMgr = main.GetComponent <ResourceManagerMono>();
            if (m_ResMgr == null)
            {
                Debug.LogError("ResourceManagerMono 没有找到");
                return;
            }
            m_ResMgr.Initialize(initOK);
        }
コード例 #2
0
ファイル: PrefabHolder.cs プロジェクト: ErQing/cshotfix
        void Start()
        {
            if (Asset != null)
            {
                AssetInst = Instantiate(Asset) as GameObject;
#if UNITY_EDITOR
                ResourceManagerMono.RecoveryShader(AssetInst);
#endif
                if (Parent != null)
                {
                    AssetInst.transform.SetParent(Parent.transform, false);
                }
            }
        }
コード例 #3
0
ファイル: ResourceManager.cs プロジェクト: zjljxsc/cshotfix
 public static string makeFullPath(string strFileName)
 {
     return(ResourceManagerMono.makeFullPath(strFileName));
 }
コード例 #4
0
ファイル: ResourceManager.cs プロジェクト: zjljxsc/cshotfix
 public static string GetDataPath()
 {
     return(ResourceManagerMono.GetDataPath());
 }
コード例 #5
0
ファイル: ResourceManager.cs プロジェクト: zjljxsc/cshotfix
 public static byte[] LoadBytes(string resName)
 {
     return(ResourceManagerMono.LoadBytes(resName));
 }