Ejemplo n.º 1
0
        public void LoadSync()
        {
            if (string.IsNullOrEmpty(modelRes))
            {
                gameObj = new GameObject();
                trans   = gameObj.transform;
            }
            UnityEngine.Object uobj = BundleMgr.Instance.GetAssetSync(modelRes);
            gameObj = GameObject.Instantiate <GameObject>(uobj as GameObject);
#if UNITY_EDITOR
            ApplyShader.CheckShader(gameObj).Start();
#endif
            trans = gameObj.transform;
        }
Ejemplo n.º 2
0
        private IEnumerator Instant(ulong gcbId, UObj asset)
        {
            yield return(null);

            GameObject go = null;

            if (null != asset)
            {
                go = Instantiate(asset) as GameObject;
            }
#if UNITY_EDITOR
            ApplyShader.CheckShader(go);
#endif
            FinishInstant(gcbId, go);
        }
Ejemplo n.º 3
0
 void Awake()
 {
     ApplyShader.CheckShader(blurMaterial);
     ApplyShader.CheckShader(UIMaterial);
 }