public void BagButtonOnClick() { //判断isShow状态 if (isShow) { //动画回放 knapsackAnimation.DOPlayBackwards(); //改变isShow状态 isShow = false; } else { //动画播放 knapsackAnimation.DOPlayForward(); //改变isShow状态 isShow = true; } }
private void Btn_OpenSize() // 打开大小设置 { if (!go_ModeSize.activeSelf) { anim_SizeIcon.DOPlayForward(); LayoutRebuilder.ForceRebuildLayoutImmediate(rt_Right); go_ModeSize.SetActive(true); if (go_ModeFilter.activeSelf && go_ModeSorting.activeSelf) { Btn_CloseFilter(); Btn_CloseSorting(); } } else { Btn_CloseSize(); } }
private void OnToggleClick_Hero2(bool isOn) { Butnclick.Play(); if (isOn) { Hero2_Image.SetActive(true); Hero2_Text_DOT.DOPlayForward(); CameraShake.DOPlayForward(); Hero2_FadeImage.SetActive(true); isOn = false; } else { Hero2_Image.SetActive(false); Hero2_Text_DOT.DOPlayBackwards(); CameraShake.DOPlayBackwards(); Hero2_FadeImage.SetActive(false); isOn = true; } }
protected override void CustomPlayFeedback(Vector3 position, float feedbacksIntensity = 1.0f) { switch (Mode) { case Modes.DOPlay: TargetDOTweenAnimation.DOPlay(); break; case Modes.DOPlayBackwards: TargetDOTweenAnimation.DOPlayBackwards(); break; case Modes.DOPlayForward: TargetDOTweenAnimation.DOPlayForward(); break; case Modes.DOPause: TargetDOTweenAnimation.DOPause(); break; case Modes.DOTogglePause: TargetDOTweenAnimation.DOTogglePause(); break; case Modes.DORewind: TargetDOTweenAnimation.DORewind(); break; case Modes.DORestart: TargetDOTweenAnimation.DORestart(); break; case Modes.DOComplete: TargetDOTweenAnimation.DOComplete(); break; case Modes.DOKill: TargetDOTweenAnimation.DOKill(); break; } }
void Start() { //单例模式赋值 _instance = this; //按钮的监听 closeButton.onClick.AddListener(delegate { missionAnimation.DOPlayBackwards(); isShow = false; }); missionButton.onClick.AddListener(delegate { if (isShow) { missionAnimation.DOPlayBackwards(); isShow = false; } else { missionAnimation.DOPlayForward(); isShow = true; } }); }
public async Task ShowAdmissionMoveUpUI() { float delayTime = (allHorseView.Count > 6 ? 5 : allHorseView.Count - 1) * delayDelta; int addMillisecond = allHorseView.Count > 2 ? timeFirstShowMilliSecond : 1500;//右边展示场地,天气,长度,3条1500ms //int addMillisecond = 0;//右边展示场地,天气,长度,3条1500ms int millisecond = Mathf.RoundToInt(delayTime * 1000 + addMillisecond); await ModelComTools.TimerComponent.WaitAsync(millisecond); while (queueTween.Count > 0) { for (int i = 0; i < MoveUpTweens.Count; i++) { MoveUpTweens[i].DORestart("2", true);//从当前位置继续播放当前id的动画 } GameObject animGo = queueTween.Dequeue(); var anims = animGo.GetComponents <DOTweenAnimation>(); foreach (var eachAnim in anims) { if (eachAnim.id == "1") { eachAnim.gameObject.SetActive(true); eachAnim.DOPlayForwardById("1"); } if (eachAnim.id == "2") { MoveUpTweens.Add(eachAnim); } } await ModelComTools.TimerComponent.WaitAsync(1200);//600 } allFade.DOPlayForward(); //uiMatchData.go_m_AdmissionBattleInfo.GetComponent<DOTweenAnimation>().DOPlayForward(); await ModelComTools.TimerComponent.WaitAsync(2000); allFade.gameObject.SetActive(false); uiMatchData.go_m_AdmissionBattleInfo.SetActive(false); }
public void EnterPanel(PanelType panelType, OnEnterPanel onEnterPanel = null) { if (stackUiBases.Count > 0) { GameObject goOld = stackUiBases.Peek(); goOld.SetActive(false); } GameObject go = this.LoadAndInstantiate(panelType); go.SetActive(true); stackUiBases.Push(go); if (onEnterPanel != null) { onEnterPanel(go); } else { DOTweenAnimation doTween = go.GetComponent <DOTweenAnimation>(); if (doTween != null) { doTween.DOPlayForward(); } } }
public void ButtonOnClick() { dungeonName.text = this.GetComponent <DungeonMessage>().dungeonName; dungeonDes.text = this.GetComponent <DungeonMessage>().dungeonDes; dungeonWindowAnimation.DOPlayForward(); }
public void Show() { tweenAnim.DOPlayForward(); }
public void OnShowClick() { doAnim.DOPlayForward(); }
public void OnHit() { level.DOPlayForward(); }
public void Show() { gameObject.SetActive(true); showAnimation.DOPlayForward(); }
public void ShowCharacterselect() { roleSelectChildDotweenAnimation.DOPlayForward(); }
public void OnServerNameImageClick() { startChildDotweenAnimation.DOPlayBackwards(); serverListChildDotweenAnimation.DOPlayForward(); }
public virtual void Open() { enteranceTween.DOPlayForward(); IsOpen = true; }
//点击设置按钮 public void SettingButtonOnClick() { //显示设置界面 settingWindowAnimation.DOPlayForward(); }
public void Show(AsyncOperation ao) { doTween.DOPlayForward(); isAsyn = true; this.ao = ao; }
//对话框显示的方法 public void DialogShow(string des) { npcDialogAnimation.DOPlayForward(); missionDes.text = des; }
public void Shock() { DragonFire.Play(); StartEmit(); Shockanimation.DOPlayForward(); }
public void OnCancelImage2Click() { userRegisterImageDotweenAnimation.DOPlayBackwards(); userNameImageDoTweenAnimation.DOPlayForward(); }
public void MoveIn() { this.gameObject.SetActive(true); tweenAni.DOPlayForward(); }
public void Show() { isShow = true; dotween.DOPlayForward(); }
public void ShowRoleAddPanel() { rolebuildChildDotweenAnimation.DOPlayForward(); }
public override void Show() { Enable(); tweenAnimation.DOPlayForward(); }
public void OnCancelImageClick() { serverListChildDotweenAnimation.DOPlayBackwards(); startChildDotweenAnimation.DOPlayForward(); }
public void OnShowClick() { playerstatusDOTweenAnimation.DOPlayForward(); playerstatusDOTweenAnimation.DOPlayBackwards(); }
// Use this for initialization void Start() { doTween.DOPlayForward(); }
//显示人物属性面板的动画 public void ShowPanel() { characterStatsAnimation.DOPlayForward(); }
public void SetMessage(string str) { MessageBoxAnimation.DOPlayForward(); MessageGameObject.GetComponent <Text>().text = str; Invoke("DelayMessageBoxReturn", 0.6f); }
public void MoveIn() { tweenAni.DOPlayForward(); }