private void OnCollisionEnter(Collision collision) { if (controlType == ControlType.OneTap) { leanTweenObject.pause(); animator.SetTrigger(lose); PlayDummyCharacterAnimation(lose); gamePlayManager.OnGameOver(false); } else { if (isJumping) { animator.speed = 0; PlayDummyCharacterAnimation(0, 0, true); leanTweenObject.pause(); gamePlayManager.OnGameOver(false); } else { leanTweenObject.pause(); animator.speed = 0; PlayDummyCharacterAnimation(0, 0, true); gamePlayManager.OnGameOver(false); } } }
public void OnPauseGame() { if (tween != null) { tween.pause(); } twennPaused = 1; transform.DOPause(); }
public CommandLeanTween(LTDescr leanTween) { m_LeanTween = leanTween; m_LeanTween.pause(); m_Seq = LeanTween.sequence(); m_Seq .append(m_LeanTween) .append(() => m_CommandValidator.iSucceeded(this)); }
void Start() { descr = LeanTween.move(go, new Vector3(0f,0,100f), 10f); descr.passed = 5f; // this should put it at the midway descr.updateNow(); descr.pause(); // doesn't matter if pause after or before setting descr.passed I think if I set the passed property and paused the next frame it would work // LeanTween.scale(go2, Vector3.one * 4f, 10f).setEasePunch(); LeanTween.scaleX (go2, (go2.transform.localScale * 1.5f).x, 15f).setEase (LeanTweenType.punch); LeanTween.scaleY (go2, (go2.transform.localScale * 1.5f).y, 15f).setEase (LeanTweenType.punch); LeanTween.scaleZ (go2, (go2.transform.localScale * 1.5f).z, 15f).setEase (LeanTweenType.punch); }
void Start() { descr = LeanTween.move(go, new Vector3(0f, 0, 100f), 10f); descr.passed = 5f; // this should put it at the midway descr.updateNow(); descr.pause(); // doesn't matter if pause after or before setting descr.passed I think if I set the passed property and paused the next frame it would work // LeanTween.scale(go2, Vector3.one * 4f, 10f).setEasePunch(); LeanTween.scaleX(go2, (go2.transform.localScale * 1.5f).x, 15f).setEase(LeanTweenType.punch); LeanTween.scaleY(go2, (go2.transform.localScale * 1.5f).y, 15f).setEase(LeanTweenType.punch); LeanTween.scaleZ(go2, (go2.transform.localScale * 1.5f).z, 15f).setEase(LeanTweenType.punch); }
public void ShowWaring(GameObject gameObject, bool booleantween) { if (booleantween) { if (TweenAlpha != null) { TweenAlpha.resume(); } else { TweenAlpha = LeanTween.alpha(gameObject, 0.1f, 2f).setRepeat(-1).setLoopPingPong(); } } else { if (TweenAlpha != null) { TweenAlpha.pause(); LeanTween.alpha(gameObject, 0.4f, 0.01f); } } }
public void Pause(bool pausing) { if (lessonIndex >= Lesson.DONE || lessonIndex == Lesson.START) { return; } isPaused = pausing; group.alpha = pausing ? 0 : 1; if (lessonIndex == Lesson.ACTIVATE_SPECIALS && !specialStarted) { if (pausing) { leanDelay.pause(); } else { leanDelay.resume(); } } }
private void StopMovement() { _spawnTween?.pause(); _cacheController.Pause(); }
private void StopMovement() { _animationTween?.pause(); }