示例#1
0
 protected override void OnAwake()
 {
     mSpriteAnimation_Cat.Pause();
     mSpriteAnimation_Cat.enabled         = false;
     mSpriteAnimation_Cat.framesPerSecond = 0;
     mSpriteAnimation_Cat.SetOnFinishedAnimationListener(OnFinishedAnimation);
 }
示例#2
0
 public void OnPlayRollDiceFinish()
 {
     RollDiceAni.Pause();
     RollSrpite.TrySetComponentValue(string.Format(ConstantData.KeyRollDicePointFormat, _curData.ShowPoint));
     RollSrpite.MakePixelPerfect();
     if (!_curData.QuickModel)
     {
         ConstantData.PlaySoundBySex(_curData.Sex, string.Format(PointSoundFormat, _curData.ShowPoint));
         CloudAni.Play();
         if (_curData.OneMoreTime)
         {
             if (gameObject.activeInHierarchy)
             {
                 if (_waitForOneMoreTimeCor != null)
                 {
                     StopCoroutine(_waitForOneMoreTimeCor);
                 }
                 _waitForOneMoreTimeCor = StartCoroutine(WaitShowOneMoreTime());
             }
         }
     }
     else
     {
         CloudSprite.spriteName = ConstantData.KeyDefaultSpriteName;
     }
 }
示例#3
0
 public void EndPlay(IEvent ievent)
 {
     SoundManager.Instance.VoicePlaying = false;
     if (null != IcoAnimation)
     {
         IcoAnimation.ResetToBeginning();
         IcoAnimation.Pause();
         mLastTime = 0;
     }
 }
示例#4
0
 /// <summary>
 /// 关闭中奖特效
 /// </summary>
 public void StopLuckAnim()
 {
     Winning.SetActive(false);
     switch (CurBetType)
     {
     case BetType.Bugatti:
     case BetType.Maybach:
     case BetType.Lamborghini:
     case BetType.Bentley:
         Anim.Pause();
         Anim.gameObject.SetActive(false);
         //YxDebug.Log("关闭动画");
         break;
     }
 }
示例#5
0
    void Start()
    {
        foreach (var obj in LineIcon)
        {
            icon.Add(obj.GetComponent <Icon> ());
        }

        if (!isCombo)
        {
            lightAnimation.Pause();
            line.SetActive(false);
            sprite.spriteName = "linelight0";
        }
        LineIcon.ForEach(x => x.SetActive(false));
    }
示例#6
0
    IEnumerator Delay()
    {
        logoani.Pause();
        yield return(new WaitForSeconds(pauseTime));

        logoani.ResetToBeginning();
    }
示例#7
0
    // Use this for initialization
    void Start()
    {
        MySprite  = GameObject.Find("MySprite");
        spriteAni = MySprite.GetComponent <UISpriteAnimation> ();
        spriteAni.Pause();

        //获取images中的子物体
        GameObject images = GameObject.Find("images");

        for (int i = 0; i < images.transform.childCount; i++)
        {
            GameObject _text  = images.transform.GetChild(i).gameObject;
            TweenAlpha _tween = _text.GetComponent <TweenAlpha> ();
            //将每个text都隐藏起来
            _tween.Play(false);
            tweens.Add(_tween);
        }
        //获取按钮和其透明度
        GameObject btn = GameObject.Find("buttons");

        for (int i = 0; i < btn.transform.childCount; i++)
        {
            GameObject gameobject = btn.transform.GetChild(i).gameObject;
            TweenAlpha _tween     = gameobject.GetComponent <TweenAlpha> ();
            UIButton   _btn       = gameobject.GetComponent <UIButton> ();
            _tween.Play(false);
            buttons.Add(_btn);
            tweenBtn.Add(_tween);
        }

        StaticGlobal.Spin = false;
    }
示例#8
0
    // Use this for initialization
    void Start()
    {
        MySprite  = GameObject.Find("MySprite");
        spriteAni = MySprite.GetComponent <UISpriteAnimation>();
        spriteAni.Pause();


        List <GameObject> text = new List <GameObject>();

        for (int i = 0; i < 3; i++)
        {
            text.Add(Instantiate(Resources.Load("hqqScene3/text" + i)) as GameObject);
            text[i].transform.parent     = GameObject.Find("Panel").transform;
            text[i].transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);
        }

        text[0].transform.localPosition = new Vector3(234, 466, 0);
        text[1].transform.localPosition = new Vector3(1, 389, 0);
        text[2].transform.localPosition = new Vector3(2, 489, 0);


        for (int i = 0; i < text.Count; i++)
        {
            tweens.Add(text[i].GetComponent <TweenAlpha>());
            tweens[i].Play(false);
        }

        StaticGlobal.Spin = false;
    }
 // Use this for initialization
 void Start()
 {
     _instance      = gameObject.GetComponent <JackPotAnim> ();
     sprite         = jackpot.GetComponent <UISprite> ();
     spriteAnim     = jackpot.GetComponent <UISpriteAnimation> ();
     sprite.enabled = false;
     spriteAnim.Pause();
 }
示例#10
0
    static int Pause(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UISpriteAnimation obj = (UISpriteAnimation)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UISpriteAnimation");

        obj.Pause();
        return(0);
    }
示例#11
0
 private void StopAudioAnimation(UISpriteAnimation spriteAnimation)
 {
     spriteAnimation.ResetToBeginning();
     spriteAnimation.Pause();
     if (_microPhoneInput != null)
     {
         _microPhoneInput.ResetAudio();
     }
 }
示例#12
0
 static public int Pause(IntPtr l)
 {
     try {
         UISpriteAnimation self = (UISpriteAnimation)checkSelf(l);
         self.Pause();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#13
0
 public void SetVoiceAnimation(bool isVisible)
 {
     if (isVisible)
     {
         mVoiceAnimation.Play();
     }
     else
     {
         mVoiceAnimation.Pause();
     }
     mVoiceAnimation.gameObject.SetVisible(isVisible);
 }
示例#14
0
 void OnPause(GameObject go)
 {
     GameCenter.chatMng.IsPausePlayVoice = !GameCenter.chatMng.IsPausePlayVoice;
     playX.gameObject.SetActive(GameCenter.chatMng.IsPausePlayVoice);
     if (GameCenter.chatMng.IsPausePlayVoice)
     {
         YvVoiceSdk.YvVoiceStopPlayVoice();
         anim.Pause();
     }
     else
     {
         anim.Play();
     }
 }
示例#15
0
 static int Pause(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UISpriteAnimation obj = (UISpriteAnimation)ToLua.CheckObject <UISpriteAnimation>(L, 1);
         obj.Pause();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#16
0
 private void Reset()
 {
     if (_showControlCor != null)
     {
         StopCoroutine(_showControlCor);
     }
     if (_waitForOneMoreTimeCor != null)
     {
         StopCoroutine(_waitForOneMoreTimeCor);
     }
     RollDiceAni.Pause();
     CloudAni.Pause();
     RollSrpite.TrySetComponentValue(ConstantData.KeyDefaultSpriteName);
     RollTweenPos.ResetToBeginning();
     CloudSprite.spriteName = ConstantData.KeyDefaultSpriteName;
 }
示例#17
0
    private static int Pause(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            UISpriteAnimation uISpriteAnimation = (UISpriteAnimation)ToLua.CheckObject(L, 1, typeof(UISpriteAnimation));
            uISpriteAnimation.Pause();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
示例#18
0
 public void StopSymbolAnimation()
 {
     symbol.ForEach(x => x.enabled = true);
     animObj.enabled = false;
     symbolAnim.Pause();
 }
示例#19
0
	private void StopAudioAnimation(UISpriteAnimation spriteAnimation) {
		spriteAnimation.ResetToBeginning();
		spriteAnimation.Pause();
		_microPhoneInput.ResetAudio();
	}
	protected override void OnAwake()
	{
		mSpriteAnimation_Kouhyoteki.Pause();
		mSpriteAnimation_Kouhyoteki.enabled = false;
		mSpriteAnimation_Kouhyoteki.framesPerSecond = 0;
	}