Beispiel #1
0
        void OnLaunchGame()
        {
            if (JavaInterface.Java())
            {
                if (JavaInterface.CoinOutCheck())
                {
                    Debug.Log("玩家分数为零停止退币");
                }

                JavaInterface.AddShuffleScore(10);
                JavaInterface.AddGameCounter(1);
            }
            profit += 1;
            PlayerPrefs.SetInt("Profit", profit);
            PlayerPrefs.Save();
            mScroll.gameObject.SetActive(true);
            mScrollMain.gameObject.SetActive(true);
            gameText.gameObject.SetActive(true);
            gameText.Display(gameScore);
            mScroll.valueA = PlayerController.players[0].health / PlayerController.players[0].healthMax;
            mScroll.Refresh();
            mScrollMain.valueA = 0;
            mScrollMain.Refresh();
            if (mWelcome != null)
            {
                mWelcome.Hide();
                mWelcome.gameObject.GetComponent <Collider>().enabled = false;
            }
            if (mChopLeft != null)
            {
                mChopLeft.Display();
            }
            if (mChopRight != null)
            {
                mChopRight.Display();
            }
        }