private void PauseRegister() { TargetGo.SetActive(false); RegisterViewTweener = DotweenManager.DOLocalMoveY(lv.RegisterView).SetAutoKill(false); //确保此方法只运行一次 EnterGameTweener.onPause -= PauseRegister; }
private void Pause() { TargetGo.SetActive(false); ChangePWViewTweener = DotweenManager.DOLocalMoveY(lv.ChangePWView).SetAutoKill(false); //确保此方法只运行一次 EnterGameTweener.onPause -= Pause; }
public override void OnTouchBegin(WorldObject worldObject) { if (!FriendFarmManager.Instance.isVisiting) { DotweenManager.BeginTouchBranAnim(Go); ViewMgr.Instance.Open(ViewNames.PlowNeedView); } }
public override void OnOpen() { base.OnOpen(); // if (GameStarter.isfirstLogin) { EnterGameTweener = DotweenManager.DOLocalMoveY(TargetGo).SetAutoKill(false); GlobalDispatcher.Instance.AddListener(LoginEvent.OnLoginSucc, HideView); if (PlayerSave.HasKey("Account") || PlayerSave.HasKey("Password")) { Debug.Log(string.Format("<color=#ffffffff><---{0}-{1}----></color>", PlayerSave.GetString("Account"), "test1")); password.text = PlayerSave.GetString("Password"); inputAccount.text = PlayerSave.GetString("Account"); } } }
private void LoginEnterToMain() { MTRunner.Instance.StartRunner(wait(0.3f)); //设置重连需要登录 SocketMgr.Instance._isneed2loginview = true; //让登陆背景消失 DotweenManager.DoFade(LoginView.BG); ViewMgr.Instance.Close(ViewNames.LoginView); ViewMgr.Instance.Open(ViewNames.CommonView); // FieldsController.Instance.SendFieldsReflashAction(); //变换主场景背景音乐 MusicManager.Instance.PlayBGM(AudioNames.BGM1); }
void OnClickWater(bool isClick) { if (isfirst && isClick) { btnWaterTweener = DotweenManager.BeginTouchActionUI(btnWater.gameObject); action = GameAction.Water; isfirst = false; o.SetActive(true); Vector3 pos = btnWater.transform.position; o.transform.position = Camera.main.ScreenToWorldPoint(new Vector3(pos.x, pos.y - 33, 200)); } else { isfirst = true; action = GameAction.None; btnWaterTweener.PlayBackwards(); } }
void OnClickHarvest(bool isClick) { if (isfirst && isClick) { btnHarvestTweener = DotweenManager.BeginTouchActionUI(btnHarvest.gameObject); isfirst = false; o.SetActive(true); Vector3 pos = btnHarvest.transform.position; o.transform.position = Camera.main.ScreenToWorldPoint(new Vector3(pos.x, pos.y - 33, 200)); MTRunner.Instance.StartRunner(GetAll()); MusicManager.Instance.Playsfx(AudioNames.HarvestPlant); } else { isfirst = true; action = GameAction.None; btnHarvestTweener.PlayBackwards(); } }