Exemple #1
0
        public override void Exchange(Actor actor)
        {
            base.Exchange(actor);
            BlockModel generalSwitch = data.gameData.GetBlockModel(BlockType.GeneralSwitch);

            if (generalSwitch.isUsed)
            {
                audioManager.PlayMapSound(MapSFX.Switcher);
                if (!blockModel.isUsed)
                {
                    chain.DropDown();
                }
                else
                {
                    chain.Raise();
                }
                blockModel.isUsed = !blockModel.isUsed;
                data.SaveData();
            }
            else
            {
                notice = (NoticeWindow)ui.OpenPanel(PanelType.Notice);
                notice.Init(data.localizationDao.GetNotice(NoticeType.NoPower));
            }
        }
Exemple #2
0
    bool TryShowNoticeWindow()
    {
        var notices = _state.Notices;

        if (notices.Count == 0)
        {
            return(false);
        }
        TryResetDecideWindow();
        Notice.Init(notices[0]);
        notices.RemoveAt(0);
        return(true);
    }
Exemple #3
0
 public override void Exchange(Actor actor)
 {
     base.Exchange(actor);
     if (isActorStay)
     {
         blockModel.isUsed = true;
         Render();
         audioManager.PlayMapSound(MapSFX.Unlock);
     }
     else
     {
         notice = (NoticeWindow)ui.OpenPanel(PanelType.Notice);
         notice.Init(data.localizationDao.GetNotice(NoticeType.DoorLocked));
         audioManager.PlayMapSound(MapSFX.Locked);
     }
 }