Пример #1
0
    void Awake()
    {
        charactervars          = mainchar.GetComponent <mainCharacterVars>();
        interact1              = npc1.GetComponent <interact>(); give1 = npc1.GetComponent <npcGiveTask>();
        interact2              = npc2.GetComponent <interact>(); give2 = npc2.GetComponent <npcGiveTask>();
        interact3              = npc3.GetComponent <interact>(); give3 = npc3.GetComponent <npcGiveTask>();
        interact4              = npc4.GetComponent <interact>(); give4 = npc4.GetComponent <npcGiveTask>();
        interactWithMarket     = market.GetComponent <interactWith>();
        interactWithMailman    = mailman.GetComponent <interactWith>();
        interactWithBank       = bank.GetComponent <interactWith>();
        interactWithPizza      = pizza.GetComponent <interactWith>();
        day2timelimitnoti.text = "";
        day2notitimer          = 8.5f;

        tutorialtext.text = "";

        if (selectedtutorial)
        {
            tutorialpos = 0;
            tutorialbox.SetActive(true);
        }
        else
        {
            tutorialpos = 25;
            tutorialbox.SetActive(false);
        }
    }
 void Start()
 {
     mainvars       = mainCharacter.GetComponent <mainCharacterVars>();
     dictInitialize = mainScriptMan.GetComponent <dictInitialize>();
     interact       = GetComponent <interact>();
     interactWith   = GetComponent <interactWith>();
     oneperday      = dayNight.dayCount;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     characterVars = maincharacter.GetComponent <mainCharacterVars>();
     friend1       = npc1.GetComponent <npcfriendship>(); daycount1 = npc1.GetComponent <npcGiveTask>();
     friend2       = npc2.GetComponent <npcfriendship>(); daycount2 = npc2.GetComponent <npcGiveTask>();
     friend3       = npc3.GetComponent <npcfriendship>(); daycount3 = npc3.GetComponent <npcGiveTask>();
     friend4       = npc4.GetComponent <npcfriendship>(); daycount4 = npc4.GetComponent <npcGiveTask>();
     translate     = Translator.GetComponent <translator>();
 }
Пример #4
0
    void Awake()
    {
        dictRef             = mainScriptMan.GetComponent <dictInitialize>();
        mainCharacterVars   = mainCharacter.GetComponent <mainCharacterVars>();
        interact            = GetComponent <interact>();
        npcConversation     = GetComponent <npcConversation>();
        interactWithMarket  = market.GetComponent <interactWith>();
        interactWithMailman = mailman.GetComponent <interactWith>();
        interactWithBank    = bank.GetComponent <interactWith>();
        interactWithPizza   = pizza.GetComponent <interactWith>();
        interactWithMayor   = mayor.GetComponent <interactWith>();
        interactWithShady   = shadyCharacter.GetComponent <interactWith>();
        friendship          = GetComponent <npcfriendship>();

        easyTaskPrompts[0].construct(new List <string> {
            "bring", " ", "this", " ", "mail", " ", "to", " ", "the", " ", "post office"
        }, "post office", "mail");
        easyTaskPrompts[1].construct(new List <string> {
            "bring", " ", "this", " ", "money", " ", "to", " ", "the", " ", "bank"
        }, "bank", "money");
        easyTaskPrompts[2].construct(new List <string> {
            "bring", " ", "this", " ", "document", " ", "to", " ", "the", " ", "town hall"
        }, "town hall", "document");
        easyTaskPrompts[3].construct(new List <string> {
            "bring", " ", "these", " ", "good", "s", " ", "to", " ", "the", " ", "alley"
        }, "alley", "good");

        //mediTaskPrompts[0].construct(new List<string> { "tell", " ", "me", " ", "where", " ", "you", " ", "are", " ", "from" }, "currentNPC", "whereFrom");
        hardTaskPrompts[0].construct(new List <string> {
            "I", " ", "need", " ", "meat", " ", "from", " ", "the", " ", "market"
        }, "market", "meat");
        hardTaskPrompts[1].construct(new List <string> {
            "I", " ", "need", " ", "bread", " ", "from", " ", "the", " ", "market"
        }, "market", "bread");
        hardTaskPrompts[2].construct(new List <string> {
            "I", " ", "need", " ", "grape", "s", " ", "from", " ", "the", " ", "market"
        }, "market", "grape");
        hardTaskPrompts[3].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "meat"
        }, "pizza", "meat");
        hardTaskPrompts[4].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "tomato"
        }, "pizza", "tomato");
        hardTaskPrompts[5].construct(new List <string> {
            "get", " ", "me", " ", "a", " ", "pizza", " ", "with", " ", "olive", "s"
        }, "pizza", "olive");

        //hardTaskPrompts[0].construct(new List<string> { "tell", " ", "him", " ", "to", " ", "come", " ", "over", " ", "here" }, "otherNPC", "come");
        taskavailable.SetActive(false);
        taskwiththisNPC = false;
        taskinprog.SetActive(false);
        completed = false;
        almostdonestar.SetActive(false);
    }
 void Start()
 {
     dictInitialize    = mainScriptMan.GetComponent <dictInitialize>();
     mainCharacterVars = mainCharacter.GetComponent <mainCharacterVars>();
     npcConversation   = GetComponent <npcConversation>();
     interactable      = false;
     taskmode          = false;
     whatYouNeed       = "";
     selected          = "";
     meatbutton.SetActive(false); breadbutton.SetActive(false); grapesbutton.SetActive(false); olivebutton.SetActive(false); tomatobutton.SetActive(false); confusedemote.SetActive(false);
 }
Пример #6
0
    void Awake()
    {
        giveTask                    = GetComponent <npcGiveTask>();
        mainCharacterVars           = mainCharacter.GetComponent <mainCharacterVars>();
        npcFriendship               = GetComponent <npcfriendship>();
        dictInitialize              = mainScriptMan.GetComponent <dictInitialize>();
        SpeechBubble.enabled        = false;
        selectTaskEasyButton.active = false;
        selectTaskHardButton.active = false;

        defaultTextColor         = dialogue.color;
        dialogue.supportRichText = true;
    }
Пример #7
0
 // Use this for initialization
 void Start()
 {
     textBox.enabled = false;
     mainCharVars    = mainChar.GetComponent <mainCharacterVars>();
 }