Beispiel #1
0
        private void requestTalk(Player player)
        {
            TalkManager.getInstance().talk(MASSAGES);
            var createdQuest = creatQuest(player.getFlagList());

            player.undertake(createdQuest);
        }
Beispiel #2
0
        public void act()
        {
            if (isCleard && !TalkManager.getInstance().getIsTalking())
            {
                quest.activateCompensation(cleardPlayer);
                cleardPlayer.deleteQuest(quest);
                cleardPlayer = null;
                isCleard     = false;

                if (needTown)
                {
                    livingTown.questCleared(this);
                }
            }
        }
Beispiel #3
0
        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();
                }
            }
        }
Beispiel #4
0
 public void talk(IFriendly friendly)
 {
     TalkManager.getInstance().trade(massages, failMassage, TRADE_INDEX, GOODS, (Player)friendly, this);
 }
Beispiel #5
0
 private void clearedTalk(Player player)
 {
     TalkManager.getInstance().talk(CLEAR_MASSAGES);
     cleardPlayer = player;
     isCleard     = true;
 }
Beispiel #6
0
 private void undertakingTalk()
 {
     TalkManager.getInstance().talk(UNDERTOOK_MASSAGES);
 }
Beispiel #7
0
 public void talk(IFriendly friendly)
 {
     TalkManager.getInstance().talk(MASSAGES);
 }