コード例 #1
0
 //播放大招畜力特效
 public void PlayXPSkillLiveEft(Transform parent, byte type, Vector2 pos)
 {
     m_SkillLiveEft = GameObject.Instantiate(m_SkillLiveObj[type]) as GameObject;
     m_SkillLiveEft.transform.SetParent(parent, false);
     m_SkillLiveEft.transform.position = new Vector3(pos.x, pos.y, 0);
     GlobalEffectMgr.SetEffectOnUI(m_SkillLiveEft);
 }
コード例 #2
0
        //播放炮上的流光特效
        public void PlayMoveLight(Transform parent, byte type, byte seat)
        {
            m_MoveLightEft[seat] = GameObject.Instantiate(m_MoveLightObj[type]) as GameObject;
            m_MoveLightEft[seat].transform.SetParent(parent, false);
            GlobalEffectMgr.SetEffectOnUI(m_MoveLightEft[seat]);

            //  m_EffectList.Add(m_MoveLightEft[seat]);
        }
コード例 #3
0
        public void PlayXPSkillMuzzleEft(Transform parent, byte type, Vector3 pos, float life)
        {
            GameObject go = GameObject.Instantiate(m_SkillMuzzleObj[type]) as GameObject;

            go.transform.SetParent(parent, false);
            go.transform.position = SceneRuntime.WorldToNGUI(pos);
            m_XPSkillMuzzleEft    = new GlobalEffectData(go, 0, life);
            GlobalEffectMgr.Instance.AddEffect(m_XPSkillMuzzleEft);
            GlobalEffectMgr.SetEffectOnUI(go);
            //m_EffectList.Add(go);
        }
コード例 #4
0
        //播放炮管子上特效
        public void PlayGaiEffect(Transform parent, byte type)
        {
            if (m_GaiEftObj[type] == null)
            {
                return;
            }
            GameObject go = GameObject.Instantiate(m_GaiEftObj[type]) as GameObject;

            go.transform.SetParent(parent, false);
            GlobalEffectMgr.SetEffectOnUI(go);
            // m_EffectList.Add(go);
        }