Esempio n. 1
0
    void Start()
    {
        if (Stage4_Controller.sceneIndex > SceneManager.GetActiveScene().buildIndex)
        {
            player.transform.position = regen_pos.position;
        }
        else
        {
            player.transform.position = start_pos.position;
        }
        Stage4_Controller.sceneIndex = SceneManager.GetActiveScene().buildIndex;

        ti.Import(sceneNo);
        //Save_Script.Save_Now_Point();
        if (!Stage4_Controller.q [0])
        {
            ti.Talk();
        }
        else if (Stage4_Controller.q [0])
        {
            Destroy(GameObject.FindWithTag("NPC"));
        }

        if (Stage4_Controller.q [10])
        {
            Light.SetActive(false);
        }

        if (Stage4_Controller.q [17])
        {
            portal2.SetActive(true);
        }
    }
Esempio n. 2
0
    void Awake()
    {
//        googleAnalytics.StartSession();
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage1_5");

        player            = GameObject.Find("Player");
        mbr               = player.GetComponent <Moving_by_RLbuttons> ();
        start_pos         = GameObject.Find("Start_Pos").transform;
        regen_pos         = GameObject.Find("Regen_Pos").transform;
        transparent_walls = GetComponent <BoxCollider2D> ();
//		msc = GameObject.Find ("Mirror_Socket").GetComponent<Mirror_Socket_Controller> ();
//		o_l = GameObject.Find ("Mirror_Socket").GetComponent<Outline> ();
//		o_l.used_or_not_for_retry = true;

        for (int i = 0; i < 1; i++)
        {
            o_l [i].used_or_not_for_retry = false;
        }

        player.transform.position = start_pos.position;

        sceneNo = 16;

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(15);
    }
Esempio n. 3
0
 void Start()
 {
     ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
     ti.Import(35);
     controller = GameObject.Find("Stage3_5_GameController").GetComponent <Stage3_5_GameController>();
     like       = true;
 }
    void Start()
    {
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(31);
        //Stage3 Save point 1//
        if (!Stage3_Controller.q [0])
        {
            Save_Script.Save_Now_Point();
        }
        //Stage3 Save point 1//

        if (GetComponent <Load_data> ()._where_are_you_from == 16)
        {
            //Debug.Log ("from 16");
            player.transform.position = regen_pos.position;
        }
        else
        {
            player.transform.position = start_pos.position;
        }
        if (Stage3_Controller.q[2])
        {
            bag.GetComponent <BoxCollider2D>().enabled = true;
        }
    }
    void Awake()
    {
        //  googleAnalytics.StartSession();
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage1_6");

        player    = GameObject.Find("Player");
        start_pos = GameObject.Find("Start_Pos").transform;
        mbr       = player.GetComponent <Moving_by_RLbuttons> ();
        //stone = GameObject.FindWithTag ("HandMirror");
//		o_l = stone.GetComponent<Outline> ();
        i_c = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller> ();
        //o_l = GameObject.Find ("Mirror_Socket").GetComponent<Outline> ();
        //o_l.used_or_not_for_retry = false;

        player.transform.position = start_pos.position;

        sceneNo = 17;

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(16);
    }
Esempio n. 6
0
    void Start()
    {
        if (GetComponent <Load_data>()._where_are_you_from == 36)
        {
            player.transform.position = start_pos.position;
        }
        ti.Import(57);

        Physics2D.IgnoreCollision(starDoll.GetComponent <BoxCollider2D>(), trashHeap.GetComponent <PolygonCollider2D>());
        Physics2D.IgnoreCollision(starDoll.GetComponent <BoxCollider2D>(), player.GetComponent <BoxCollider2D>());

        if (!Stage5_Controller.q[37])
        {
            trashHeap.layer = 2;
            starDoll.GetComponent <DragRigidBody2D>().enabled = false;
        }

        if (Stage5_Controller.q[38])
        {
            starDoll.SetActive(false);
            trashHeap.layer = 2;
        }
        umbrella.SetActive(false);

        if (!Stage5_Controller.q[39])
        {
            rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>().RainIntensity = 0f;
        }
    }
    void Start()
    {
        _ivon_textbox = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetComponent <Image>();
        _ivon_text    = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetChild(0).GetComponent <Text>();
        _ivon_textbox.rectTransform.rotation = Quaternion.Euler(new Vector3(0, 180f, 0));
        _ivon_text.rectTransform.rotation    = Quaternion.Euler(new Vector3(0, 0, 0));
        Ivon.SetActive(false);
        if (GetComponent <Load_data>()._where_are_you_from == 36)
        {
            player.transform.position = start_pos.position;
        }
        ti.Import(56);

        if (!Stage5_Controller.q[39])
        {
            rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>().RainIntensity = 0f;
        }

        if (Stage5_Controller.q[43])
        {
            babyDog.SetActive(true);
            Save_Script.Save_Now_Point();
        }
        else
        {
            babyDog.SetActive(false);
        }

        if (!Stage5_Controller.q[45])
        {
            umbrella.SetActive(false);
            hardbox.SetActive(false);
        }
    }
    void Start()
    {
        active    = true;
        leftSound = GetComponent <AudioSource> ();
        GameObject.FindWithTag("Player").transform.position = startPos.transform.position;
        Item_Canvas = GameObject.Find("Item_Canvas");
        ti          = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(37);
        //ti.Import (15);

        //GameObject _park = GameObject.FindWithTag("Controller").transform.GetChild (1).gameObject; // stop bgm
        //_park.SetActive(false);


        if (GameObject.Find("quest12_likelist(Clone)") != null)
        {
            Destroy(GameObject.Find("quest12_likelist(Clone)"));
        }

        GameObject.FindWithTag("Player").transform.localScale = new Vector3(0.6f, 0.6f, 1f);

        if (!Stage3_Controller.q[20])
        {
            Save_Script.Save_Now_Point();
            earphone_message = Instantiate(earphone_message, Vector3.zero, Quaternion.identity) as GameObject;
            earphone_message.transform.SetParent(Item_Canvas.transform, false);
        }
        Debug.Log(name + "buildIndex is " + SceneManager.GetActiveScene().buildIndex + "sceneIndex is " + Stage3_Controller.sceneIndex);
        if (Stage3_Controller.sceneIndex >= SceneManager.GetActiveScene().buildIndex)
        {
            lookingforIvon = true;
        }
        Stage3_Controller.sceneIndex = SceneManager.GetActiveScene().buildIndex;
        Debug.Log(name + "buildIndex is " + SceneManager.GetActiveScene().buildIndex + "sceneIndex is " + Stage3_Controller.sceneIndex);
    }
Esempio n. 9
0
    void Awake()
    {
        ic = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller> ();

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(500);
    }
Esempio n. 10
0
    void Awake()
    {
        player = GameObject.Find("Player");
        mbr    = player.GetComponent <Moving_by_RLbuttons> ();

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(21);
    }
 void Start()
 {
     aa.Import(33);
     if (Stage3_Controller.q [8])
     {
         portalto3_4.GetComponent <BoxCollider2D>().enabled = true;
     }
 }
    void Start()
    {
        player        = GameObject.Find("Player");
        Ivon          = GameObject.Find("Ivon");
        mbr           = player.GetComponent <Moving_by_RLbuttons>();
        start_pos     = GameObject.Find("Start_Pos").transform;
        regen_pos     = GameObject.Find("Regen_Pos").transform;
        ic            = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller>();
        rainIntensity = rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>();

        _ivon_textbox = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetComponent <Image>();
        _ivon_text    = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetChild(0).GetComponent <Text>();

        player.transform.position = start_pos.position;
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        //sparkle.transform.position = GameObject.FindWithTag("Item_Canvas").transform.GetChild(1).GetChild(0).position;
        ti.Import(64);
        //ti.Talk();

        if (!Stage6_Controller.q[10])
        {
            Save_Script.Save_Now_Point();
            ti.Talk();
        }
        else if (Stage6_Controller.q[10] && !Stage6_Controller.q[11])
        {
            rainIntensity.RainIntensity = 0f;
            Ivon.SetActive(false);
            ti.Talk(10); // 응?
        }
        else if (Stage6_Controller.q[16] && !Stage6_Controller.q[17])
        {
            rainIntensity.RainIntensity = 0f;
            Ivon.SetActive(false);
            ti.Talk(29);
        }
        else if (Stage6_Controller.q[21] && !Stage6_Controller.q[22])
        {
            ti.Talk(39);
        }
        else if (Stage6_Controller.q[28] && !Stage6_Controller.q[29])
        {
            _ivon_textbox.rectTransform.rotation = Quaternion.Euler(new Vector3(0, 0, 0));
            _ivon_text.rectTransform.rotation    = Quaternion.Euler(new Vector3(0, 0, 0)); // 도대체 왜 돌려지지...
            ti.Talk(48);                                                                   // 코코야 왜 짖닝
            portal6_5.enabled         = false;
            ic._interaction_object[2] = "NPC";
            // player.GetComponent<Outline>().used_or_not_for_retry = false;
        }
        else if (Stage6_Controller.q[49] && !Stage6_Controller.q[50])
        {
            portal6_5.enabled         = false;
            ic._interaction_object[2] = "NPC";
            Ivon.GetComponent <Outline>().used_or_not_for_retry = false;
            ti.Talk(71); // 킄킄 이제 부적을 사용해서 돌아가자
        }
    }
    void Start()
    {
        player = GameObject.FindWithTag("Player");
        player.transform.position = startPos.position;
        ti          = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        item_Canvas = GameObject.FindWithTag("Item_Canvas");
        Save_Script.Save_Now_Point();

        ti.Import(43);
    }
    // Use this for initialization
    void Start()
    {
        player    = GameObject.FindGameObjectWithTag("Player");
        mbr       = player.GetComponent <Moving_by_RLbuttons>();
        start_pos = GameObject.Find("Start_Pos").transform;
        ti        = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();

        player.transform.position = start_pos.position;
        ti.Import(63);
        ti.Talk(); // 어서와 코코
    }
Esempio n. 15
0
    void Start()
    {
        player    = GameObject.FindGameObjectWithTag("Player");
        mbr       = player.GetComponent <Moving_by_RLbuttons>();
        start_pos = GameObject.Find("Start_Pos").transform;
        ic        = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller>();

        player.transform.position = start_pos.position;
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(67);
        Save_Script.Save_Now_Point();
        ti.Talk();
    }
    void Start()
    {
        if (GetComponent <Load_data> ()._where_are_you_from == 33)          // 스테이지 4에서 온 게 아니라면
        {
            player.transform.position = regen_pos.position;
        }
        else if (GetComponent <Load_data>()._where_are_you_from == 36)
        {
            player.transform.position = start_pos.position;
        }

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        ti.Import(51);

        if (Stage5_Controller.q[3])  //after 1st scene end
        //_blackout.color = new Color (0,0,0,0);
        {
            _bg.color = new Color(1, 1, 1, 1);
            GetComponent <BoxCollider2D> ().enabled = false;
            GGALJAKI1 = true; GGALJAKI2 = true; GGALJAKI3 = true;
        }

        if (Stage5_Controller.q [15] && !Stage5_Controller.q[16])
        {
            print("별감대사부터시작");
            player.transform.position = regen_pos.position;
        }

        //		if (Stage5_Controller.q [17]) {
        //			print ("화분 이미지 바뀜 ~ 잠깰때까지");
        //		}

        if (Stage5_Controller.q[18] && !Stage5_Controller.q[20])
        {
            ball_object.SetActive(false);
        }

        if (Stage5_Controller.q[20])
        {
            ball_object.transform.position = new Vector2(-12.91054f, -3.294492f);
        }

        if (Stage5_Controller.q [22] && !Stage5_Controller.q[23])
        {
            portal_to_dream.gameObject.SetActive(false);
            player.transform.position = afterdreampos.position;
            player.transform.rotation = Quaternion.Euler(0, 180, 0);
        }
    }
    void Start()
    {
        if (GetComponent <Load_data> ()._where_are_you_from == 36)
        {
            player.transform.position = regen_pos.position;
        }

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        ti.Import(55);

        if (!Stage5_Controller.q[39])
        {
            rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>().RainIntensity = 0f;
        }
    }
Esempio n. 18
0
    void Awake()
    {
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage5_1#");

        sceneNo = 50;
        ti      = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        ti.Import(50);
        player = GameObject.Find("Player");
        portal = GameObject.Find("Portal");
    }
 void Start()
 {
     player    = GameObject.FindGameObjectWithTag("Player");
     mbr       = player.GetComponent <Moving_by_RLbuttons>();
     start_pos = GameObject.Find("Start_Pos").transform;
     //regen_pos = GameObject.Find("Regen_Pos").transform;
     ic            = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller>();
     rainIntensity = rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>();
     //  Portal.enabled = false;
     player.transform.position = start_pos.position;
     ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
     ti.Import(62);
     Save_Script.Save_Now_Point();
     ti.Talk();
 }
    void Start()
    {
        player    = GameObject.FindGameObjectWithTag("Player");
        Ivon      = GameObject.Find("Ivon");
        mbr       = player.GetComponent <Moving_by_RLbuttons>();
        start_pos = GameObject.Find("Start_Pos").transform;
        ic        = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller>();

        _ivon_textbox = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetComponent <Image>();
        _ivon_text    = GameObject.FindGameObjectWithTag("Dialogue").transform.GetChild(2).GetChild(0).GetComponent <Text>();
        _ivon_textbox.rectTransform.rotation = Quaternion.Euler(new Vector3(0, 180f, 0));
        _ivon_text.rectTransform.rotation    = Quaternion.Euler(new Vector3(0, 0, 0));

        sceneTrigger.enabled      = false;
        player.transform.position = start_pos.position;
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(65);
    }
    void Start()
    {
        if (GetComponent <Load_data> ()._where_are_you_from == 40)
        {
            player.transform.position = from_5_8.position;
        }
        if (GetComponent <Load_data>()._where_are_you_from == 42 || GetComponent <Load_data>()._where_are_you_from == 39)
        {
            player.transform.position = from_5_7.position;
        }
        if (GetComponent <Load_data>()._where_are_you_from == 37)
        {
            player.transform.position = from_5_5.position;
        }
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        ti.Import(53);

        /*if (Stage5_Controller.q [24] && !Stage5_Controller.q [25]) {
         *      Save_Script.Save_Now_Point ();
         *      //시작할 때 저장
         * }*/
        if (Stage5_Controller.q [25])
        {
            goto_5_5.enabled = true;
        }
        if (Stage5_Controller.q[31])
        {
            warning.SetActive(false); // 다시 돌아왔을 때 맨홀 뚜껑 없어짐.
        }
        if (!Stage5_Controller.q[39])
        {
            trashTruck.SetActive(true);
            rainFall.transform.parent.gameObject.GetComponent <DigitalRuby.RainMaker.RainScript2D>().RainIntensity = 0f;
        }
        if (Stage5_Controller.q[40])
        {
            goto_5_7.enabled = true;
        }
        if (Stage5_Controller.q[42])
        {
            Goto_5_7.GetComponent <Portal_Controller>()._To_Scene = 39; // 쓰레기더미도 아무것도 없는 순수 5-7 Scene으로.
        }
    }
    void Start()
    {
        player    = GameObject.FindGameObjectWithTag("Player");
        start_pos = GameObject.Find("Start_Pos");
        dragging  = diary.GetComponent <BookPro>();
        ti        = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(61);

        on_off      = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(0).gameObject;
        itemButton0 = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(0).GetComponent <Image>();
        item0       = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(0).GetChild(0).GetComponent <Image>();
        itemButton1 = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(1).GetComponent <Image>();
        item1       = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(1).GetChild(1).GetComponent <Image>();
        itemButton2 = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(2).GetComponent <Image>();
        itemButton3 = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(3).GetComponent <Image>();
        itemButton4 = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(0).GetChild(1).GetChild(4).GetComponent <Image>();
        joystick    = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(3).gameObject;
        jumpButton  = GameObject.FindGameObjectWithTag("Item_Canvas").transform.GetChild(1).gameObject;
        on_off.SetActive(false); joystick.SetActive(false); jumpButton.SetActive(false);
        itemButton0.enabled = false; item0.enabled = false; itemButton1.enabled = false; item1.enabled = false;
        itemButton2.enabled = false; itemButton3.enabled = false; itemButton4.enabled = false;

        player.transform.position = start_pos.transform.position;

        if (!Stage6_Controller.q[15])
        {
            ti.Talk();
        }
        else if (!Stage6_Controller.q[25])
        {
            ti.Talk(4); // 음 여긴 없는걸
        }
        else if (!Stage6_Controller.q[35])
        {
            dragging.CurrentPaper = 5;
        }
        else if (!Stage6_Controller.q[42])
        {
            dragging.CurrentPaper = 3;
            ti.Talk(10); // 여기서 갑자기 왜 일기장을..?
        }
    }
Esempio n. 23
0
    void Start()
    {
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(12);

        if (GetComponent <Load_data> ()._where_are_you_from == 6)
        {
            player.transform.position = regen_pos.position;
        }

        if (Stage1_Controller.q[2])           //오 이거 생각보다 유용함
        //거울을 뽑으면 다른데 갔다와도 뽑혀있는상태임!
        {
            transparent_wall.enabled = false;
            broken_bridge.size       = new Vector2(7.05f, 1.59f);
            //broken_bridge.SetActive (true);
            Destroy(GameObject.Find("Mirror_Socket"));
            sp.SetActive(false);
        }
    }
    // Use this for initialization
    void Start()
    {
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage4_6");

        player     = GameObject.FindWithTag("Player");
        itemCanvas = GameObject.FindWithTag("Item_Canvas");
        ti         = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        ti.Import(46);          // temp code

        roundBoard = GameObject.Find("Round").GetComponent <Text> ();
        scoreBoard = GameObject.Find("Score").GetComponent <Text> ();
        timeBoard  = GameObject.Find("Time").GetComponent <Text> ();
        returnRandom();

        player.transform.Translate(startPos.position);

        tempPos = new Vector3[2];
        //fixedPos = new Vector3[3];
        velocity = new Vector3[2];
        for (int i = 0; i < velocity.Length; i++)
        {
            velocity [i] = Vector3.zero;
        }
        getTempTransform = false;
        systemMessage.SetActive(false);
        actionMessage.SetActive(false);
        restart.SetActive(false);
        timeBoard.gameObject.SetActive(false);
        for (int i = 0; i < buttons.Length; i++)
        {
            buttons [i].SetActive(false);
        }

        //ti.Talk ();
        //Stage4_Controller.q[35] = true;
    }
    void Start()
    {
        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(21);

        if (!Stage2_Controller.q[0])
        {
            //3rd save point//
            Save_Script.Save_Now_Point();
            print("Saved");
            //3rd save point//
            s2c.ic = ic;             //?이거뭐냐
            player.transform.localScale = new Vector3(1.4f, 1.4f, player.transform.localScale.z);
        }

        if (GetComponent <Load_data> ()._where_are_you_from == 12)
        {
            player.transform.position = regen_pos.position;
        }
        else
        {
//			Text_Importer aa = GameObject.FindGameObjectWithTag ("Dialogue").GetComponent<Text_Importer> ();
//			aa.NPC_Say_yeah ("코코");
            ti.Talk();
        }

        if (Stage2_Controller.q[0])
        {
//			Destroy (a1);
//			Destroy (b1);	//이거 안꺼놓으면 nullreference라서 태엽하고 멀티탭 살아남
            Destroy(clockwork);
        }

        if (Stage2_Controller.q[4])
        {
            Destroy(multiTap [0]);
            Destroy(multiTap [1]);
        }
    }
    void Awake()
    {
        //googleAnalytics.StartSession();
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage1_1x");

        player = GameObject.Find("Player");
        mbr    = player.GetComponent <Moving_by_RLbuttons> ();
        //Player_text = GameObject.Find ("코코_text").GetComponent<Text> ();
        start_pos = GameObject.Find("Start_Pos").transform;
        regen_pos = GameObject.Find("Regen_Pos").transform;
        player.transform.position = start_pos.position;

        sceneNo = 14;

        ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(14);
    }
Esempio n. 27
0
    void Awake()
    {
        //googleAnalytics.StartSession();
        googleAnalytics.LogScreen(SceneManager.GetActiveScene().name);

        player = GameObject.Find("Player");
        Ivon   = GameObject.Find("이본");
        portal = GameObject.Find("Portal");
        //_t_i = GameObject.Find ("Dialogue_Canvas_").GetComponent<Text_Importer> ();
        ti  = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2> ();
        i_c = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller> ();
        bool  musictog = PlayerPrefsX.GetBool("Music_ONOFF");
        float musicsl  = PlayerPrefs.GetFloat("Music_Volume");

        PlayerPrefs.DeleteAll();
        PlayerPrefsX.SetBool("Music_ONOFF", musictog);
        PlayerPrefs.SetFloat("Music_Volume", musicsl);
        tc      = GameObject.FindWithTag("Controller").GetComponent <Tutorial_Controller>();
        sceneNo = 1;
        ti.Import(1);
        player.transform.position = startpos.position;
    }
Esempio n. 28
0
    void Awake()
    {
        //googleAnalytics.StartSession();
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1)
        {
            Destroy(Analyticslist[0]);
        }
        googleAnalytics.LogScreen("Stage1_3");

        player    = GameObject.Find("Player");
        start_pos = GameObject.Find("Start_Pos").transform;

        ic = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller> ();

        o_l_1.used_or_not_for_retry = true;
        o_l_2.used_or_not_for_retry = true;

        player.transform.position = start_pos.position;

        sceneNo = 13;
        ti      = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
        ti.Import(13);

        for (int i = 0; i < 5; i++)           //s3 시작 시 템 없어야함. 카트에서 거울먹고 종료 후 이어하기 시 거울이 있ㅡㄴ 것ㅡㄹ 방지함
        {
            ic._item_name_list [i]     = "";
            ic._usable_item[i]         = false;
            ic._the_number_of_items[i] = 0;
            ic._interaction_object [i] = "";
            ic._consumable [i]         = false;
            ic._item_list [i].GetComponent <Image> ().color = new Color(1, 1, 1, 0);
            ic._item_list [i].transform.parent.GetComponentInChildren <Text> ().color = new Color(1, 1, 1, 0);
            //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            ic._explanations[i] = "";
            //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        }
    }
    void Start()
    {
        if (!Stage1_Controller.q[0])
        {
            //1st save point//
            Save_Script.Save_Now_Point();
            //print ("Saved");
            //1st save point//
            player.transform.rotation = Quaternion.Euler(Vector3.zero);
            ti = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer2>();
            ti.Import(11);
            ti.Talk();
        }

        if (GetComponent <Load_data> ()._where_are_you_from == 5)
        {
            player.transform.position = regen_pos.position;
        }
        if (Stage1_Controller.q[1])
        {
            Destroy(mirror);
        }
    }
    void Start()
    {
        Stage4_Controller.sceneIndex = SceneManager.GetActiveScene().buildIndex;

        ti.Import(sceneNo);

        if (Stage4_Controller.q[6])
        {
            Star.enabled = true;
        }
        if (Stage4_Controller.q[7])
        {
            Destroy(Star.gameObject);
        }
        if (Stage4_Controller.q [14] && !Stage4_Controller.q[18])
        {
            racoon.SetActive(true);
        }
        else
        {
            racoon.SetActive(false);
        }
    }