コード例 #1
0
		public static void SelectChapter(Nightmare1 chapterName)
		{
			switch (chapterName)
			{
			case (Nightmare1.ButtonChapter1):
				new KidsRoomChapter();
				break;

			case (Nightmare1.ButtonChapter2):
				new KidsRoomChapterV2();
				break;

			case (Nightmare1.ButtonChapter3):
				new LivingRoomChapter();
				break;

			default:
				new KidsRoomChapter();
				break;
			}
			ToggleMenuVisibility();
		}
コード例 #2
0
        public static void SelectChapter(Nightmare1 chapterName)
        {
            switch (chapterName)
            {
            case (Nightmare1.ButtonChapter1):
                new KidsRoomChapter();
                break;

            case (Nightmare1.ButtonChapter2):
                new KidsRoomChapterV2();
                break;

            case (Nightmare1.ButtonChapter3):
                new LivingRoomChapter();
                break;

            default:
                new KidsRoomChapter();
                break;
            }
            ToggleMenuVisibility();
        }