示例#1
0
        //提供特殊接口,为Chain类型特效设置值
        public void UF_PlayChain(string name, string chainName, Vector3 form, Vector3 to, float size)
        {
            FXController fx = this.UF_Create(name, size);

            if (fx != null)
            {
                EChainLine chain = fx.UF_FindEffect(chainName) as EChainLine;
                if (chain != null)
                {
                    chain.SetChain(form, to);
                }
                fx.UF_Play(form, Vector3.zero);
                if (m_IsPause)
                {
                    fx.UF_Pause();
                }
            }
        }
示例#2
0
        public void UF_Play(string name, float size, Vector3 pos, Vector3 euler, int order)
        {
            if (string.IsNullOrEmpty(name))
            {
                return;
            }
            FXController fx = this.UF_Create(name, size, pos, euler);

            if (fx != null)
            {
                fx.sortingOrder = order;
                fx.UF_Play();
                if (m_IsPause)
                {
                    fx.UF_Pause();
                }
            }
        }