void RecieveChangeObj(IMessage msg) { WsChangeInfo newtchangeinfo = (WsChangeInfo)msg.Data; Debug.LogWarning("ChangeObj : " + newtchangeinfo.name + " To : " + newtchangeinfo.changenum); if (newtchangeinfo.id != mStaticThings.I.mAvatarID) { if (newtchangeinfo.name == gameObject.name) { if (newtchangeinfo.kind == "ani") { if (newtchangeinfo.changenum == "0") { dta.DOPlayBackwards(); isopen = false; } else if (newtchangeinfo.changenum == "1") { dta.DOPlayForward(); isopen = true; } } } } }
public void OnRegisterCancelClick() { //隐藏注册面板。返回登陆面板 registerAnimation.DOPlayBackwards(); StartCoroutine(HideUser(registerAnimation.gameObject)); loginAnimation.gameObject.SetActive(true); loginAnimation.DOPlayForward(); }
//角色创建界面退出 public void OnCharacterShowQuit() { //隐藏创建角色界面,显示角色选择界面 characterChooseAnimation.gameObject.SetActive(true); characterChooseAnimation.DOPlayForward(); characterShowAnimation.DOPlayBackwards(); StartCoroutine(HideUser(characterShowAnimation.gameObject)); }
public void OnLoginClick() { //得到用户名和变量并存储起来 username = usernameLogin.text; password = passwordLogin.text; //点击登录按钮返回开始界面 loginAnimation.DOPlayBackwards(); StartCoroutine(HideUser(loginAnimation.gameObject)); startAnimation.gameObject.SetActive(true); startAnimation.DOPlayBackwards(); usernameStart.text = username; }
public void Hide() { dotween.DOPlayBackwards(); isShow = false; EquipementDes.instance.gameObject.SetActive(false); }
private void Start() { time = 0f; SetButtonImage(); status = PinYinFrameStatus.Show; gameObject.SetActive(LanguageManager.languageType == LanguageType.Chinese ? false : true); dOTweenAnimation = GetComponent <DOTweenAnimation>(); //测试 //LanguageManager.languageType = LanguageType.English; pinYinButton.GetComponent <DOTweenAnimation>().onComplete.AddListener(() => { pinYinButton.GetComponent <DOTweenAnimation>().DOPlayBackwards(); }); pinYinButton.onClick.AddListener(() => { time = 0f; pinYinButton.GetComponent <DOTweenAnimation>().DOPlayForward(); PinYin.isShowPinYin = !PinYin.isShowPinYin; SetButtonImage(); }); moveButton.onClick.AddListener(() => { if (status == PinYinFrameStatus.Hide) { dOTweenAnimation.DOPlayBackwards(); status = PinYinFrameStatus.Show; } else { dOTweenAnimation.DOPlayForward(); status = PinYinFrameStatus.Hide; } }); }
/// <summary> /// 显示英雄面板 /// </summary> private void BtnShowHeroPropertyClick() { ButtonCilck.Play(); ATKText.text = "ATK: " + (PlayManager.Instance.Attack); HPText.text = "Phy: " + (PlayManager.Instance.HPPoint); DEFText.text = "DEF: " + (PlayManager.Instance.Defend); TempDEFPoint = 0; TempHPPoint = 0; TempATkPoint = 0; TempPoint = Point; PointText.text = Point.ToString(); if (ShowHeroPanel == false) { //显示出面板 HeroProperty.DOPlayForward(); //HeroProperty.DOPlayBackwards(); ShowHeroPanel = true; } else { HeroProperty.DOPlayBackwards(); //HeroProperty.DOPlayForward(); ShowHeroPanel = false; } }
protected override void OnBtnClick(GameObject go) { Debug.Log(go.name); switch (go.name) { case "Button_RegAndLogIn": break; case "Button_Cancel": UIPanelMgr.Instance.ExitPanel((objs) => { if (objs.Length > 0) { GameObject panel = objs[0] as GameObject; DOTweenAnimation tween = panel.GetComponent <DOTweenAnimation>(); tween.DOPlayBackwards(); } }); break; case "Button_Close": UIPanelMgr.Instance.ExitPanel(); break; } }
public void StartTimer() { doTween.DOPlayBackwards(); timer = 0; isStart = true; }
public void Hide() { this.tower = null; visible = false; showAnimation.DOPlayBackwards(); }
public void BagButtonOnClick() { //判断isShow状态 if (isShow) { //动画回放 knapsackAnimation.DOPlayBackwards(); //改变isShow状态 isShow = false; } else { //动画播放 knapsackAnimation.DOPlayForward(); //改变isShow状态 isShow = true; } }
public virtual void Close() { if (enteranceTween != null) { enteranceTween.DOPlayBackwards(); } IsOpen = false; }
IEnumerator Show(string message, float time) { isSetActive = true; messageDotween.DOPlayForward(); messageText.text = message; yield return(new WaitForSeconds(time)); messageDotween.DOPlayBackwards(); isSetActive = false; }
public void ChangeToRestart() { particleFill.Stop(); isTimeOut = true; groupBtnContinue.DOFade(0, 0.4f).SetEase(Ease.Linear); groupMove.DOFade(1, 0.4f).SetEase(Ease.Linear); groupAttempt.DOFade(1, 0.4f).SetEase(Ease.Linear); tweenGroupImgFill.DOPlayBackwards(); txtNoThanks.text = "TAP TO RESTART"; }
/// <summary> /// Plays the tween to show the Remove button. /// </summary> /// <param name="isOn">Is the button being toggled on?</param> public void ToggleRemoveButton(bool isOn) { if (isOn) { removeTween.DORestart(); } else { removeTween.DOPlayBackwards(); } }
private void OnToggleClick_Hero1(bool isOn) { Butnclick.Play(); if (isOn) { Hero1_Image.SetActive(true); Hero1_Text_DOT.DOPlayForward(); CameraShake.DOPlayForward(); Hero1_FadeImage.SetActive(true); isOn = false; } else { Hero1_Image.SetActive(false); Hero1_Text_DOT.DOPlayBackwards(); CameraShake.DOPlayBackwards(); Hero1_FadeImage.SetActive(false); isOn = true; } }
public async ETTask Close() { if (animation) { animation.DOPlayBackwards(); Sate = UISetting.UISate.HideAnima; await YuoWait.WaitTimeAsync(animation.duration); } Sate = UISetting.UISate.Hide; }
public void OnServerChoose() { //改变顶部和开始界面服务器选择 serverSelect.text = server.text; serverSelectStart.text = server.text; //隐藏服务器选择界面 serverAnimation.DOPlayBackwards(); StartCoroutine(HideUser(serverAnimation.gameObject)); //显示开始界面 startAnimation.gameObject.SetActive(true); startAnimation.DOPlayBackwards(); }
public void DisableElement() { tween = GetComponent <DOTweenAnimation>(); if (!tween) { return; } tween.onRewind.AddListener(OnRewind); tween.DOPlayBackwards(); }
//点击更换角色按钮 public void OnChangeCharacterClick() { //隐藏角色选择界面,显示创建角色界面 characterChooseAnimation.DOPlayBackwards(); StartCoroutine(HideUser(characterChooseAnimation.gameObject)); characterShowAnimation.gameObject.SetActive(true); characterShowAnimation.DOPlayForward(); if (createdModle != null) { GameObject.Destroy(createdModle); } }
public void OnClick() { if (_isShow == false) { _tweenAnimation.DOPlayBackwards(); } else { _tweenAnimation.DOPlayForward(); } _isShow = !_isShow; }
public void OnClick() { if (isShow) { animat.DOPlayForward(); isShow = false; } else { animat.DOPlayBackwards(); isShow = true; } }
public void changeText() { if (isChanged) { mDOTMenu.DOPlayBackwards(); } else { mDOTMenu.DOPlayForward(); } isChanged = !isChanged; }
// Update is called once per frame public void OnClick() { if (isShow) { tweenAimation.DOPlayBackwards(); isShow = false; } else { tweenAimation.DOPlayForward(); isShow = true; } }
public void TransformState() { if (!isShow) { dotween.DOPlayForward(); isShow = true; } else { dotween.DOPlayBackwards(); isShow = false; } }
public void SkillWindowShow() { if (isShow) { skillWindowAnimation.DOPlayBackwards(); isShow = false; } else { skillWindowAnimation.DOPlayForward(); isShow = true; } }
// Update is called once per frame void Update() { if (OpenBox = false) { animation.DOPlayForward(); OpenBox = true; } else { animation.DOPlayBackwards(); OpenBox = false; } }
// Update is called once per frame public void Toggle(bool toggle) { if (ani != null) { if (toggle) { ani.DOPlayForward(); } else { ani.DOPlayBackwards(); } } }
private void Update() { if (isAsyn) { print("到LoadSecne...26行"); progressBar.value = ao.progress; if (progressBar.value >= 1) { doTween.DOPlayBackwards(); isAsyn = false; print("到LoadSecne...31行"); } } }
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; } }); }