예제 #1
0
 private void PauseRegister()
 {
     TargetGo.SetActive(false);
     RegisterViewTweener = DotweenManager.DOLocalMoveY(lv.RegisterView).SetAutoKill(false);
     //确保此方法只运行一次
     EnterGameTweener.onPause -= PauseRegister;
 }
예제 #2
0
 private void Pause()
 {
     TargetGo.SetActive(false);
     ChangePWViewTweener = DotweenManager.DOLocalMoveY(lv.ChangePWView).SetAutoKill(false);
     //确保此方法只运行一次
     EnterGameTweener.onPause -= Pause;
 }
예제 #3
0
파일: Brand.cs 프로젝트: rerwr/test
 public override void OnTouchBegin(WorldObject worldObject)
 {
     if (!FriendFarmManager.Instance.isVisiting)
     {
         DotweenManager.BeginTouchBranAnim(Go);
         ViewMgr.Instance.Open(ViewNames.PlowNeedView);
     }
 }
예제 #4
0
        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");
                }
            }
        }
예제 #5
0
        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);
        }
예제 #6
0
        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();
            }
        }
예제 #7
0
        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();
            }
        }