예제 #1
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);
        }
예제 #2
0
        public void ShowBossFishSpecailEft(CatchedData cd, Fish fish)
        {
            GameObject go = GameObject.Instantiate(m_BossFishSpecailEftObj) as GameObject;

            go.transform.SetParent(SceneBoot.Instance.UIPanelTransform, false);
            go.transform.position = SceneRuntime.WorldToNGUI(fish.Position);
            GlobalEffectData bossFishEft = new GlobalEffectData(go, 0, 5);

            GlobalEffectMgr.Instance.AddEffect(bossFishEft);
            // GlobalEffectMgr.SetEffectOnUI(go);

            //sceneModel.Instance.PlayBack(BackAnimType.BACK_ANIM_BOSS);
        }