// Use this for initialization void Start () { stage = GameObject.FindGameObjectWithTag ("GameController").GetComponent<StageController> (); stage.deactive_Stage (8); boss = GameObject.FindGameObjectWithTag ("Boss"); player = GameObject.FindGameObjectWithTag ("Player"); move_script = player.GetComponent <ClickToMove_lvl2> (); skill_script = player.GetComponent <Skill_Controller> (); action_bar = GameObject.FindGameObjectWithTag ("ActionBar").GetComponent <ActionBarScript> (); move_script.teleport (position.transform.position); player.transform.position = position.transform.position; move_script.rotateToPos (boss.transform.position); move_script.enabled = false; skill_script.enabled = false; action_bar.enabled = false; dialogs[0] = Resources.Load<Texture2D>("Lvl2/Dialogs/boss_dialog_1"); dialogs[1] = Resources.Load<Texture2D>("Lvl2/Dialogs/boss_dialog_2_"+PlayerPrefs.GetString ("Player")); timer = Time.time + 3.5f; camera_timer = Time.time; }
// Use this for initialization void Start () { stage = GameObject.FindGameObjectWithTag ("GameController").GetComponent<StageController> (); stage.deactive_Stage (3); player = GameObject.FindGameObjectWithTag ("Player"); music = GameObject.FindGameObjectWithTag ("music_engine").GetComponent<Music_Engine_Script> (); demon_anim = demon.GetComponent<FireDemon_Controller> (); move_script = player.GetComponent <ClickToMove_lvl2> (); skill_script = player.GetComponent <Skill_Controller> (); move_script.enabled = false; skill_script.enabled = false; }