예제 #1
0
파일: IControl.cs 프로젝트: lulook23/WTG
    public void SetState()
    {
        runtimeObj.SetActive(state == IGameMenuState.Runtime);
        inventoryObj.SetActive(state == IGameMenuState.Inventory);
        pauseObj.SetActive(state == IGameMenuState.Pause);
        dialogObj.SetActive(state == IGameMenuState.Dialog);
        deathMenuObj.SetActive(state == IGameMenuState.Death);
        runeMenuObj.SetActive(state == IGameMenuState.RuneCreate);
        characterMenuObj.SetActive(state == IGameMenuState.CharacterInfo);
        lootMenuObj.SetActive(state == IGameMenuState.Loot);

        if (state != IGameMenuState.Loot && lootableChest)
        {
            lootableChest = null;
        }
        if (state == IGameMenuState.CharacterInfo)
        {
            portait.texture = ITextureDrawer.GetFromPerson(character.status);
        }

        toGame.gameObject.SetActive(state != IGameMenuState.RuneCreate);

        if (state != IGameMenuState.Runtime)
        {
            Time.timeScale = 0;
        }
        else
        {
            Time.timeScale = 1;
        }

        IFontSetter.SetFontForall();
    }
예제 #2
0
파일: IControl.cs 프로젝트: lulook23/WTG
    public void ToDialog()
    {
        ICharacter with = character.canTalk;

        dialog_window.with       = with;
        dialog_window.for_answer = answer;
        dialog_window.parent     = parent;
        dialog_window.control    = this;
        dialogPortait.texture    = ITextureDrawer.GetFromPerson(with.status);
        dialog_window.InitializeNode();

        //dialog_window.PrepareStage ();
    }