예제 #1
0
    void Start()
    {
        mallEventPanel.SetActive(false);
        wheelResultPanel.SetActive(false);
        wheelPanel.SetActive(false);

        questList = new List <Quest> ();

        questList.Add(new Quest(1, " After walking the corridors for some time, you see some teenagers laughing while pulling down the pants of a nerdy boy.\n", 0.5,
                                new Banner(0, "Picture opportunity!\nTry to snap a picture for your blog.\n", "You quickly snap a picture of the hillarys naked boy and post it online. \n", "You drop your phone while taking it out of your pocket and the screen cracks. Everybody laughs at you.\n ", 4, 0, 0, 0, 0, 0, 0, -2),
                                new Banner(2, "Charm the teenagers so the nerd can escape\n ", "You catwalk in a circle around the teenagers. They are hypnotized by your beauty. They all grab their phones and take pictures of you.", "You try to catwalk in front of the teenagers, but somehow you stumble and fall to the ground. The teenagers forget the nerd and start to laugh at you instead.\n", 3, 0, 0, 0, -2, 0, 0, 0)));

        questList.Add(new Quest(2, "Just outside the pet shop you see a small, frightened rabbit that has escaped its cage.\n", 0.5,
                                new Banner(1, "“Pick up the rabbit and deliver it back to the store”\n", "You pick up the rabbit and bring it back. The store owner is so happy he gives you a reward!\n", "You pick up the rabbit with all the best intentions of returning it the pet store, but suddenly you are on your way to the toilets.\nAt the toilets, you poke a hole in the rabbit with the sharpened pencil you used for your math exam. You sit on the toilet and watch it slowly bleed to death.\n", 0, 1, 0, 2, 0, -5, 0, 0),
                                new Banner(2, "Pick up the rabbit and take some super cute selfies.\n", " You and a rabbit, no one on SoMe can resist all that cuteness.\n", "After you post the picture on SoMe, you realized that the rabbit has shit on your t-shirt.\nYou are the laughing stock of the internet town.\n", 3, 0, 0, 0, -1, 0, 0, 0)));


        questText_eventPanel.text = " ";
        leftButtonText.text       = " ";
        rightButtonText.text      = " ";
        wheelResultInfo.text      = " ";

        //guiBedroomGameObject = GameObject.Find ("GUIController");
        //guiBedroom = guiBedroomGameObject.GetComponent<GUIMall> ();

        guiMallGameObject = GameObject.Find("GUIController");
        guiMall           = guiMallGameObject.GetComponent <GUIMall> ();


        EventPanelController();
        SetUpResultPanel();
    }
예제 #2
0
    void Start()
    {
        bedroomEventPanel.SetActive(false);
        wheelResultPanel.SetActive(false);
        wheelPanel.SetActive(false);


        guiBedroomGameObject = GameObject.Find("GUIController");
        guiBedroom           = guiBedroomGameObject.GetComponent <GUIBedroom> ();

        guiMallGameObject = GameObject.Find("GUIController");
        guiMallScript     = guiMallGameObject.GetComponent <GUIMall> ();


        trig = wheelPanel.GetComponentInChildren <Trigger>();
        trig.OnWheelStopped += Trig_OnWheelStopped;

        bedroomQuests = new List <Quest> (Resources.LoadAll <Quest>("BedroomQuests"));

        WheelScriptToAccess = WheelObject.GetComponent <WheelController>();
        // WheelScriptToAccess.InitWheelColor = 9;
    }
예제 #3
0
    void Start()
    {
        mallEventPanel.SetActive(false);
        wheelResultPanel.SetActive(false);
        wheelPanel.SetActive(false);
        searchNetPanel.SetActive(false);

        questText_eventPanel.text = " ";
        leftButtonText.text       = " ";
        rightButtonText.text      = " ";
        wheelResultInfo.text      = " ";

        guiMallGameObject = GameObject.Find("GUIController");
        guiMall           = guiMallGameObject.GetComponent <GUIMall> ();


        trig = wheelPanel.GetComponentInChildren <Trigger>();
        trig.OnWheelStopped += Trig_OnWheelStopped;

        mallQuests = new List <Quest> (Resources.LoadAll <Quest>("MallQuests"));

        WheelScriptToAccess = WheelObject.GetComponent <WheelController> ();
        //WheelScriptToAccess.InitWheelColor = 4;
    }