Exemple #1
0
 void Awake()
 {
     player = GameObject.Find("Player");
     Ivon   = GameObject.Find("이본");
     portal = GameObject.Find("Portal");
     _t_i   = GameObject.Find("Dialogue_Canvas_").GetComponent <Text_Importer> ();
     i_c    = GameObject.FindWithTag("Item_Canvas").GetComponent <Item_Controller> ();
     PlayerPrefs.DeleteAll();
     tc = GameObject.FindWithTag("Controller").GetComponent <Tutorial_Controller>();
 }
Exemple #2
0
	void Awake(){
        //googleAnalytics.StartSession();
        Analyticslist = GameObject.FindGameObjectsWithTag("Analysis");
        if (Analyticslist.Length > 1) Destroy(Analyticslist[0]);
        googleAnalytics.LogScreen(SceneManager.GetActiveScene().name);

        player = GameObject.Find ("Player");
		start_pos = GameObject.Find ("Start_pos").transform;
		_ic = GameObject.FindWithTag ("Item_Canvas");
		player.transform.position = start_pos.position;
		tc = GameObject.FindWithTag ("Controller").GetComponent<Tutorial_Controller>();
		tc.tutorialMessageIndex++;
		bgm = tc.gameObject.GetComponentInChildren<AudioSource> ();
		//bgm = tc.GetComponentInChildren<AudioSource> ();
	}
    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;
    }
Exemple #4
0
 void Start()
 {
     tc = GameObject.FindWithTag("Controller").GetComponent <Tutorial_Controller>();
     tutorialMessage = GameObject.FindWithTag("tutorialMessage");
 }