示例#1
0
        void PlayEffects(object obj)
        {
            EffectsPoint.ClearChild();
            EffectsObj = CreatObjectToNGUI.InstantiateObj(IconPrefabManager.Instance.getIcon("JH_UI_BG_7002"), EffectsPoint);
            SpriteSmoothFlag spriteSmoothFlag = EffectsObj.AddComponent <SpriteSmoothFlag>();
            Color            color1           = Color.white;

            color1.a = 0;
            Color color2 = Color.white;

            spriteSmoothFlag.BeginFlag(3, 0.5f, color1, color2, FlagComplete);
        }
示例#2
0
        public void PlayEffects(object obj)
        {
            if (!CanChangeButton)
            {
                return;
            }
            this.skillButtonStatus = SkillButtonStatus.Enable;
            SetMyButtonActive(true);
            EffectsPoint.ClearChild();
            if (IconPrefabManager.Instance != null)
            {
                //EffectsObj = CreatObjectToNGUI.InstantiateObj(IconPrefabManager.Instance.getIcon("JH_UI_BG_7002"), EffectsPoint);
                if (SpecialType == SpecialSkillType.Meaning)
                {
                    EffectsObj = CreatObjectToNGUI.InstantiateObj(SirenSkillEffectPrefab, EffectsPoint);
                }
                else
                {
                    EffectsObj = CreatObjectToNGUI.InstantiateObj(EffectPrefab, EffectsPoint);
                    SpriteSmoothFlag spriteSmoothFlag = EffectsObj.AddComponent <SpriteSmoothFlag>();
                    Color            color1           = Color.white;
                    color1.a = 0;
                    Color color2 = Color.white;
                    spriteSmoothFlag.BeginFlag(3, 0.5f, color1, color2, FlagComplete);
                }
            }

            Label_CDTime.gameObject.SetActive(false);

            //Color color1 = Color.white;
            //color1.a = 0;
            //EffectsObj.GetComponent<UISprite>().alpha = 0;
            //Color color2 = Color.white;
            //TweenAlpha.Begin(EffectsObj,0.2f,1);
            ////spriteSmoothFlag.BeginFlag(2, color1, color2, EffectsFlagComplete);
            //StartCoroutine(EffectsDisable());
        }
示例#3
0
 public void FlagMPProgressBar(object obj)
 {
     MPBackground.BeginFlag(3, 0.5f, Color.white, Color.red, null);
 }