private void requestTalk(Player player) { TalkManager.getInstance().talk(MASSAGES); var createdQuest = creatQuest(player.getFlagList()); player.undertake(createdQuest); }
public void act() { if (isCleard && !TalkManager.getInstance().getIsTalking()) { quest.activateCompensation(cleardPlayer); cleardPlayer.deleteQuest(quest); cleardPlayer = null; isCleard = false; if (needTown) { livingTown.questCleared(this); } } }
public void act() { bonusKeeper.advanceLimit(); if (!Menu.getIsDisplaying() && !TalkManager.getInstance().getIsTalking()) { if (Input.GetKeyDown(KeyCode.E)) { GameObject menuObject = MonoBehaviour.Instantiate(menuPrefab, new Vector3(874f, 384f, 0f), new Quaternion(0, 0, 0, 0)); Menu menu = menuObject.GetComponent <Menu>(); menu.transform.SetParent(CanvasGetter.getCanvasElement().transform); menu.setState(this, party); } else if (Input.GetKeyDown(KeyCode.Mouse0) && !TalkManager.getInstance().getIsTalking()) { searchFront(); } } }
public void talk(IFriendly friendly) { TalkManager.getInstance().trade(massages, failMassage, TRADE_INDEX, GOODS, (Player)friendly, this); }
private void clearedTalk(Player player) { TalkManager.getInstance().talk(CLEAR_MASSAGES); cleardPlayer = player; isCleard = true; }
private void undertakingTalk() { TalkManager.getInstance().talk(UNDERTOOK_MASSAGES); }
public void talk(IFriendly friendly) { TalkManager.getInstance().talk(MASSAGES); }