Пример #1
0
        public void OnRadarUpgradeButton()
        {
            var pearlCount = PlayerPrefHelper.LoadInt(PlayerPrefHelper.PEARL_COUNT);

            this.PearlCount = pearlCount - 10;
            PlayerPrefHelper.SaveInt(PlayerPrefHelper.PEARL_COUNT, this.PearlCount);
            PlayerPrefHelper.SaveBool(PlayerPrefHelper.UPGRADE_RADAR, 1);
            uiAnimator.UpdateMainText();
        }
Пример #2
0
        private void CheckInstructions()
        {
            bool isInstructions = PlayerPrefHelper.LoadBool(PlayerPrefHelper.HAS_PLAYED_BEFORE);

            if (!isInstructions && playerSub.GetComponent <PlayerController>().Vertical < 0)
            {
                instructionUI.RunAnimationOut();
                PlayerPrefHelper.SaveBool(PlayerPrefHelper.HAS_PLAYED_BEFORE, 1);
            }
        }