Esempio n. 1
0
 /// <summary>
 /// Event05_11_MeetRyotaroのロード
 /// </summary>
 /// <param name="saveController"></param>
 private void load_Event05_11_MeetRyotaro(SaveController05 saveController)
 {
     if (saveController.completed_Event05_11_MeetRyotaro())
     {
         eventPanel11.SetActive(false);
     }
 }
Esempio n. 2
0
        private bool event3()
        {
            // イベント完了を保存
            SaveController05 saveController05 = new SaveController05();

            saveController05.complete_Event05_06_TalkClassmate();
            return(true);
        }
Esempio n. 3
0
 /// <summary>
 /// Event05_12_PlayBaseballのロード
 /// </summary>
 /// <param name="saveController"></param>
 private void load_Event05_12_PlayBaseball(SaveController05 saveController)
 {
     if (saveController.completed_Event05_12_PlayBaseball())
     {
         eventPanel12.SetActive(false);
         child2.transform.position = movePoint8_3.transform.position;
     }
 }
Esempio n. 4
0
        private bool event9()
        {
            // イベント完了を保存
            SaveController05 saveController = new SaveController05();

            saveController.complete_Event05_12_PlayBaseball();
            return(true);
        }
Esempio n. 5
0
        /// <summary>
        /// ステージの初期化
        /// </summary>
        private void initializeStage()
        {
            SaveController05 saveController05 = new SaveController05();

            // データのロード
            SaveController.SceneNo[] scene = saveController05.get_Scene();
            SaveController.PlaceNo   place = saveController05.get_Place();

            // プレイヤーの位置を設定する
            if (scene[0].Equals(SaveController.SceneNo.Scene04) &&
                (place.Equals(SaveController.PlaceNo.Place03)))
            {
                Player.transform.position = entryPoint1.transform.position;
                Player.transform.rotation = entryPoint1.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place01);
            }
            else if (scene[0].Equals(SaveController.SceneNo.Scene04) &&
                     (place.Equals(SaveController.PlaceNo.Place04)))
            {
                Player.transform.position = entryPoint2.transform.position;
                Player.transform.rotation = entryPoint2.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place02);
            }
            else if (scene[0].Equals(SaveController.SceneNo.Scene07) &&
                     (place.Equals(SaveController.PlaceNo.Place01)))
            {
                Player.transform.position = entryPoint3.transform.position;
                Player.transform.rotation = entryPoint3.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place03);
            }
            else if (scene[0].Equals(SaveController.SceneNo.Scene05) &&
                     (place.Equals(SaveController.PlaceNo.Place02)))
            {
                Player.transform.position = entryPoint2.transform.position;
                Player.transform.rotation = entryPoint2.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place02);
            }
            else if (scene[0].Equals(SaveController.SceneNo.Scene05) &&
                     (place.Equals(SaveController.PlaceNo.Place03)))
            {
                Player.transform.position = entryPoint3.transform.position;
                Player.transform.rotation = entryPoint3.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place03);
            }
            else
            {
                Player.transform.position = entryPoint1.transform.position;
                Player.transform.rotation = entryPoint1.transform.rotation;
                saveController05.save_Scene(SaveController.SceneNo.Scene05, SaveController.PlaceNo.Place01);
            }

            load_Event05_04_TakeEnemy(saveController05);
            load_Event05_07_01_MeetDevil(saveController05);
            load_Event05_10_GetOffTrain(saveController05);
            load_Event05_11_MeetRyotaro(saveController05);
            load_Event05_12_PlayBaseball(saveController05);
        }
Esempio n. 6
0
        private bool event4()
        {
            // イベント完了を保存
            SaveController05 saveController05 = new SaveController05();

            saveController05.complete_Event05_10_GetOffTrain();

            eventController05.EventPanel9.SetActive(false);
            eventController05.EventPanel11.SetActive(true);
            eventController05.MainCamera.gameObject.SetActive(true);
            eventController05.EventCamera2.gameObject.SetActive(false);
            return(true);
        }
Esempio n. 7
0
        private bool event6()
        {
            // イベント完了を保存
            SaveController05 saveController05 = new SaveController05();

            saveController05.complete_Event05_04_TakeEnemy();

            eventController05.EventPanel6.SetActive(true);
            eventController05.Player.gameObject.SetActive(true);
            eventController05.Enemy1.gameObject.SetActive(false);
            eventController05.Classmate1.gameObject.SetActive(false);
            eventController05.Classmate3.gameObject.SetActive(false);
            return(true);
        }
Esempio n. 8
0
        /// <summary>
        /// Event05_10_GetOffTrainのロード
        /// </summary>
        /// <param name="saveController"></param>
        private void load_Event05_10_GetOffTrain(SaveController05 saveController)
        {
            if (saveController.completed_Event05_10_GetOffTrain())
            {
                eventPanel8.SetActive(false);
                train1.SetActive(false);
                train1.transform.position = movePoint6_2.transform.position;

                if (saveController.completed_Event05_11_MeetRyotaro() == false)
                {
                    eventPanel11.SetActive(true);
                }
            }
        }
Esempio n. 9
0
        private bool event7()
        {
            // イベント完了を保存
            SaveController05 saveController05 = new SaveController05();

            saveController05.complete_Event05_11_MeetRyotaro();
            saveController05.save_KeyItem1Status(SaveController.KeyItemStatus.Level_50);
            eventController05.Update_KeyItem1();

            eventController05.MainCamera.gameObject.SetActive(true);
            eventController05.EventCamera4.gameObject.SetActive(false);
            eventController05.Ryotaro.gameObject.SetActive(false);
            return(true);
        }
Esempio n. 10
0
        /// <summary>
        /// Event05_04_TakeEnemyのロード
        /// </summary>
        /// <param name="saveController"></param>
        private void load_Event05_04_TakeEnemy(SaveController05 saveController)
        {
            if (saveController.completed_Event05_04_TakeEnemy())
            {
                eventPanel4.SetActive(false);
                eventPanel5.SetActive(false);

                classmate1.gameObject.SetActive(false);
                classmate3.gameObject.SetActive(false);
                enemy1.gameObject.SetActive(false);

                Classmate2.transform.position = movePoint2.transform.position;
                Classmate2.transform.rotation = movePoint2.transform.rotation;
            }
        }
Esempio n. 11
0
        private bool event13()
        {
            if (saveController03.completed_Event03_09_MeetDevil())
            {
                eventController05.EventPanel7_2.SetActive(true);
            }

            // イベント完了を保存
            SaveController05 saveController05 = new SaveController05();

            saveController05.complete_Event05_07_01_MeetDevil();

            eventController05.MainCamera.gameObject.SetActive(true);
            eventController05.EventCamera1.gameObject.SetActive(false);
            return(true);
        }
Esempio n. 12
0
        /// <summary>
        /// Event05_07_01_MeetDevilのロード
        /// </summary>
        /// <param name="saveController"></param>
        private void load_Event05_07_01_MeetDevil(SaveController05 saveController)
        {
            if (saveController.completed_Event05_07_01_MeetDevil())
            {
                eventPanel7_1.SetActive(false);
                eventPanel7_2.SetActive(true);
                train1.SetActive(true);
                train1.transform.position       = movePoint6_1.transform.position;
                eventCamera1.transform.position = movePoint5.transform.position;
            }

            SaveController03 saveController03 = new SaveController03();

            if (saveController03.completed_Event03_09_MeetDevil() == false)
            {
                devil.gameObject.SetActive(false);
                eventPanel7_2.SetActive(false);
            }
        }
Esempio n. 13
0
 public Event05_10_GetOffTrain(EventController05 eventController) : base(eventController)
 {
     this.eventController05 = eventController;
     saveController05       = new SaveController05();
 }