예제 #1
0
        private bool event40()
        {
            if (new SaveController00().completed_PlayButton() == false)
            {
                SaveController_End05 saveController_End05 = new SaveController_End05();
                saveController_End05.complete_Event_End05_01_Ending();

                SaveController00 saveController00 = new SaveController00();
                saveController00.deleteAllKeys();
                saveController00.save_Scene(SaveController.SceneNo.Scene01, SaveController.PlaceNo.None);
            }
            eventController.loadScene(@"stage00");
            return(true);
        }
예제 #2
0
        public void UpdateHintButtons()
        {
            SaveController00 saveController00 = new SaveController00();

            bool showHint1_1 = saveController00.completed_Hint1_1();

            bool showHint2_1 = saveController00.completed_Hint2_1();
            bool showHint2_2 = saveController00.completed_Hint2_2();

            bool showHint3_1 = saveController00.completed_Hint3_1();
            bool showHint3_2 = saveController00.completed_Hint3_2();
            bool showHint3_3 = saveController00.completed_Hint3_3();

            bool showHint4_1 = saveController00.completed_Hint4_1();
            bool showHint4_2 = saveController00.completed_Hint4_2();

            bool showHint5_1 = saveController00.completed_Hint5_1();

            bool showHint6_1 = saveController00.completed_Hint6_1();
            bool showHint6_2 = saveController00.completed_Hint6_2();

            LockButton1_1.gameObject.SetActive(!showHint1_1);
            HintButton1_1.gameObject.SetActive(showHint1_1);

            LockButton2_1.gameObject.SetActive(!showHint2_1);
            HintButton2_1.gameObject.SetActive(showHint2_1);
            LockButton2_2.gameObject.SetActive(!showHint2_2);
            HintButton2_2.gameObject.SetActive(showHint2_2);

            LockButton3_1.gameObject.SetActive(!showHint3_1);
            HintButton3_1.gameObject.SetActive(showHint3_1);
            LockButton3_2.gameObject.SetActive(!showHint3_2);
            HintButton3_2.gameObject.SetActive(showHint3_2);
            LockButton3_3.gameObject.SetActive(!showHint3_3);
            HintButton3_3.gameObject.SetActive(showHint3_3);

            LockButton4_1.gameObject.SetActive(!showHint4_1);
            HintButton4_1.gameObject.SetActive(showHint4_1);
            LockButton4_2.gameObject.SetActive(!showHint4_2);
            HintButton4_2.gameObject.SetActive(showHint4_2);

            LockButton5_1.gameObject.SetActive(!showHint5_1);
            HintButton5_1.gameObject.SetActive(showHint5_1);

            LockButton6_1.gameObject.SetActive(!showHint6_1);
            HintButton6_1.gameObject.SetActive(showHint6_1);
            LockButton6_2.gameObject.SetActive(!showHint6_2);
            HintButton6_2.gameObject.SetActive(showHint6_2);
        }
예제 #3
0
        private bool event1()
        {
            SaveController00 saveController00 = new SaveController00();

            SaveController.SceneNo[] scene = saveController00.get_Scene();

            if (saveController00.SceneDict.ContainsKey(scene[0]))
            {
                return(eventController.loadScene(saveController00.SceneDict[scene[0]]));
            }
            else
            {
                // イレギュラー(初回にはじめからを押して即落ちたときとか)
                return(eventController.loadScene(@"stage01"));
            }
        }
예제 #4
0
        /// <summary>
        /// はじめからボタン押下
        /// </summary>
        public void OnClick_StartButton()
        {
            soundEffect_Ok.Play();

            SaveController00 saveController00 = new SaveController00();

            if (saveController00.completed_Event00_01_FirstStart())
            {
                messagebox.SetActive(true);
            }
            else
            {
                eventList = new Event00_01_FirstStart(this).GetEventList();
                eventNo   = 0;
            }
        }
예제 #5
0
        private bool event1()
        {
            // データの削除処理
            new SaveController().deleteAllKeys();
            new SaveController00().deleteAllKeys();
            new SaveController02().deleteAllKeys();
            new SaveController03().deleteAllKeys();
            new SaveController04().deleteAllKeys();
            new SaveController05().deleteAllKeys();
            new SaveController07().deleteAllKeys();
            new SaveController08().deleteAllKeys();

            SaveController00 saveController00 = new SaveController00();

            saveController00.complete_Event00_01_FirstStart();

            return(eventController.loadScene("stage01"));
        }
예제 #6
0
        public void Start()
        {
            base.Start();

            // リワード広告オブジェクトの作成(読み込みが発生するため最初に)
            CreateAndLoadRewardedAd();

            SaveController00 saveController00 = new SaveController00();

            // ギャラリーから起動されたことを示すフラグを削除
            saveController00.delete_PlayButton();

            // ボタンの設定
            if (saveController00.completed_Event00_01_FirstStart() == false)
            {
                continueButton.GetComponent <Button>().interactable = false;
            }
            startButton.SetEventController(this);
            continueButton.SetEventController(this);
            galleryButton.SetEventController(this);
            charityButton.SetEventController(this);
            creditButton.SetEventController(this);

            pay150Button.SetEventController(this);
            pay500Button.SetEventController(this);
            pay1000Button.SetEventController(this);
            pay10000Button.SetEventController(this);

            okButton.SetEventController(this);
            cancelButton.SetEventController(this);

            closeButton_Credit.SetEventController(this);
            closeButton_Gallery.SetEventController(this);
            closeButton_Charity.SetEventController(this);

            link1.SetEventController(this);
            link2.SetEventController(this);
            link3.SetEventController(this);
            link4.SetEventController(this);
            link5.SetEventController(this);
            link6.SetEventController(this);
            link7.SetEventController(this);

            if (new SaveController_End01().completed_Event_End01_01_Ending())
            {
                playEnd1.gameObject.SetActive(true);
                playEnd1.SetEventController(this);
            }
            else
            {
                notPlayEnd1.gameObject.SetActive(true);
                notPlayEnd1.SetEventController(this);
            }

            if (new SaveController_End02().completed_Event_End02_01_Ending())
            {
                playEnd2.gameObject.SetActive(true);
                playEnd2.SetEventController(this);
            }
            else
            {
                notPlayEnd2.gameObject.SetActive(true);
                notPlayEnd2.SetEventController(this);
            }

            if (new SaveController_End03().completed_Event_End03_01_Ending())
            {
                playEnd3.gameObject.SetActive(true);
                playEnd3.SetEventController(this);
            }
            else
            {
                notPlayEnd3.gameObject.SetActive(true);
                notPlayEnd3.SetEventController(this);
            }

            if (new SaveController_End04().completed_Event_End04_01_Ending())
            {
                playEnd4.gameObject.SetActive(true);
                playEnd4.SetEventController(this);
            }
            else
            {
                notPlayEnd4.gameObject.SetActive(true);
                notPlayEnd4.SetEventController(this);
            }

            if (new SaveController_End05().completed_Event_End05_01_Ending())
            {
                playEnd5.gameObject.SetActive(true);
                playEnd5.SetEventController(this);
            }
            else
            {
                notPlayEnd5.gameObject.SetActive(true);
                notPlayEnd5.SetEventController(this);
            }

            if (new SaveController_End06().completed_Event_End06_01_Ending())
            {
                playEnd6.gameObject.SetActive(true);
                playEnd6.SetEventController(this);
            }
            else
            {
                notPlayEnd6.gameObject.SetActive(true);
                notPlayEnd6.SetEventController(this);
            }

            okButton_reward.SetEventController(this);
            cancelButton_reward.SetEventController(this);

            RewardButton[] rewardButtons = new RewardButton[]
            {
                LockButton1_1,
                LockButton2_1, LockButton2_2,
                LockButton3_1, LockButton3_2, LockButton3_3,
                LockButton4_1, LockButton4_2,
                LockButton5_1,
                LockButton6_1, LockButton6_2
            };

            foreach (RewardButton rewardButton in rewardButtons)
            {
                rewardButton.SetEventController(this);
            }
            ;

            _rewardActionDic.Add(LockButton1_1, new SaveController00().complete_Hint1_1);
            _rewardActionDic.Add(LockButton2_1, new SaveController00().complete_Hint2_1);
            _rewardActionDic.Add(LockButton2_2, new SaveController00().complete_Hint2_2);
            _rewardActionDic.Add(LockButton3_1, new SaveController00().complete_Hint3_1);
            _rewardActionDic.Add(LockButton3_2, new SaveController00().complete_Hint3_2);
            _rewardActionDic.Add(LockButton3_3, new SaveController00().complete_Hint3_3);
            _rewardActionDic.Add(LockButton4_1, new SaveController00().complete_Hint4_1);
            _rewardActionDic.Add(LockButton4_2, new SaveController00().complete_Hint4_2);
            _rewardActionDic.Add(LockButton5_1, new SaveController00().complete_Hint5_1);
            _rewardActionDic.Add(LockButton6_1, new SaveController00().complete_Hint6_1);
            _rewardActionDic.Add(LockButton6_2, new SaveController00().complete_Hint6_2);

            closeButton_hint.SetEventController(this);

            HintButton[] hintButtons = new HintButton[]
            {
                HintButton1_1,
                HintButton2_1, HintButton2_2,
                HintButton3_1, HintButton3_2, HintButton3_3,
                HintButton4_1, HintButton4_2,
                HintButton5_1,
                HintButton6_1, HintButton6_2
            };

            foreach (HintButton hintButton in hintButtons)
            {
                hintButton.SetEventController(this);
            }
            ;

            _hintObjectDic.Add(HintButton1_1, Hint1_1);
            _hintObjectDic.Add(HintButton2_1, Hint2_1);
            _hintObjectDic.Add(HintButton2_2, Hint2_2);
            _hintObjectDic.Add(HintButton3_1, Hint3_1);
            _hintObjectDic.Add(HintButton3_2, Hint3_2);
            _hintObjectDic.Add(HintButton3_3, Hint3_3);
            _hintObjectDic.Add(HintButton4_1, Hint4_1);
            _hintObjectDic.Add(HintButton4_2, Hint4_2);
            _hintObjectDic.Add(HintButton5_1, Hint5_1);
            _hintObjectDic.Add(HintButton6_1, Hint6_1);
            _hintObjectDic.Add(HintButton6_2, Hint6_2);

            // ヒントオブジェクトの切り替え
            UpdateHintButtons();

            eventList = new Event00_04_IndicateTitle(this).GetEventList();
            eventNo   = 0;
        }