Ejemplo n.º 1
0
 public void PlayerContactStart()
 {
     DetermineCharacterContact();
     SetCharacterName();
     menuDataService.MoveMessageMenu(camera);
     menuDataService.ModifyMenuMessage(activeContact);
     menuDataService.SetCharacterName(characterName);
     menuDataService.ActivateMenuBtns(activeContact);
     DisableAllCharacters();
     LookAtPlayer();
 }
Ejemplo n.º 2
0
    public void nonCloseResponse(int choice)
    {
        GameDataModel.Contact currentContact = this.GetComponentInParent <CharacterContactService>().GetContact();
        nextContact = GetNextChoice(currentContact, choice);

        if (nextContact == null)
        {
            closeMenu();
            return;
        }

        menuDataService.ActivateMenuBtns(nextContact);
        menuDataService.ModifyMenuMessage(nextContact);

        if (nextContact.itemGranted != null)
        {
            string item = nextContact.itemGranted;
            inventoryDataService.ItemFound(nextContact.itemGranted);
            gameMessage.GetComponent <Text>().text = "You are given a " + item + ".";
        }
    }