Ejemplo n.º 1
0
 void Start()
 {
     myDescriptionText        = this.transform.Find("DescriptionText").GetComponent <Text>();
     myTimeRemainingText      = this.transform.Find("DaysLeftText").GetComponent <Text>();
     myOutline                = this.GetComponent <Outline>();
     pierreQuestInventoryList = this.transform.parent.GetComponent <PierreQuestInventoryList>();
 }
Ejemplo n.º 2
0
    //This is used in the Estate Tab to tell Players that Pierre has assigned a new Quest
    void CreateNewPierreQuestModal(object[] objectStorage)
    {
        PierreQuest quest = objectStorage[0] as PierreQuest;
        PierreQuestInventoryList questList = objectStorage[1] as PierreQuestInventoryList;
        //Make the Pop Up
        GameObject popUp = Instantiate(pierreQuestModal) as GameObject;

        popUp.transform.SetParent(gameObject.transform, false);
        popUp.transform.SetAsFirstSibling();
        //Set the Quest and the QuestList
        PierreQuestModal questModal = popUp.GetComponent <PierreQuestModal>();

        questModal.quest     = quest;
        questModal.questList = questList;
        //Title Text
        Text titleText = popUp.transform.Find("TitleText").GetComponent <Text>();

        titleText.text = "A Call for Gossip!";
        //Body Text
        Text bodyText = popUp.transform.Find("BodyText").GetComponent <Text>();

        bodyText.text = "Madamme, it's urgent! My finely honed journalistic senses are telling me that the public is currently crying out for Gossip concerning the " + quest.Faction + "." +
                        "\n\nIf you can get that to me in " + quest.daysTimeLimit + " Days then I'll be able to get you a reward of " + quest.reward.ID + ". \n\nHow does that sound?";
    }