コード例 #1
0
        public override void EnterScene()
        {
            TransitionEngine.onTransitionComplete += OnTransitionComplete;
            TransitionEngine.onScreenObscured     += OnScreenObscured;

            UserData user = UserManager.GetInstance().user;

            DisassemblygirlDungeonConfig config = ConfigMgr.GetInstance().DisassemblygirlDungeon.GetConfigById(currentDungeonIndex);

            dungeon = DungeonData.FromConfig(config);

            CreateMap(dungeon.resourceID);

            girlEntity = CreateGirlEntity(user.girl);
            girlEntity.Play(AnimationDefs.Idle.ToString().ToLower());

            petEntity = CreatePetEntity(user.GetActivePet());

            if (petEntity != null)
            {
                petEntity.Flip();
            }

            LayerManager.GetInstance().AddPopUpView <DungeonWindow>();
            LayerManager.GetInstance().AddPopUpView <DungeonReadyBar>();
        }