Пример #1
0
        /// <summary>
        /// 播放UI动画
        /// </summary>
        /// <param name="type"></param>
        public void PlayUIAnimation(UIAnimationType type)
        {
            string path = string.Format("download/{0}/prefab/uiprefab/uianimations/{1}.drb", ConstDefine.GAME_NAME, type.ToString().ToLower());

            AssetBundleManager.Instance.LoadOrDownload(path, type.ToString().ToLower(), (GameObject go) =>
            {
                if (go != null)
                {
                    go = Instantiate(go);
                    go.SetParent(m_EffectContainer);
                }
            });
        }
Пример #2
0
 /// <summary>
 /// 播放UI动画
 /// </summary>
 /// <param name="type"></param>
 public void PlayUIAnimation(UIAnimationType type)
 {
     PlayUIAnimation(type.ToString());
 }