//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, February 06, 2018 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; using System; namespace vnxbqy.UI { public class AchievementAwardEffectResponse : MonoBehaviour { [SerializeField] UIEffect m_FullEffect; [SerializeField] UIEffect m_AwardEffect; public void ActiveEffect(int _effectType) { switch (_effectType) { case 0: m_AwardEffect.Stop(); break; case 1: m_AwardEffect.Play(); break; case 2: m_AwardEffect.Stop(); break; } } public void FullEffectState(bool _full) { if (_full && !m_FullEffect.IsPlaying) { m_FullEffect.Play(); } else if (!_full && m_FullEffect.IsPlaying) { m_FullEffect.StopImediatly(); } } } }