// Use this for initialization void Start() { get_num = Quest_Easy.Set_Scene_Num(); if (get_num == 1) { dragon_pre_Red.SetActive(true); dragon_pre_Green.SetActive(false); dragon_pre_Blue.SetActive(false); } if (get_num == 2) { dragon_pre_Red.SetActive(false); dragon_pre_Green.SetActive(true); dragon_pre_Blue.SetActive(false); } if (get_num == 3) { dragon_pre_Red.SetActive(false); dragon_pre_Green.SetActive(false); dragon_pre_Blue.SetActive(true); } time = 0; dragon_preview_f = false; Warning = GameObject.Find("Warning"); script1 = Warning.GetComponent <Warning>(); }
// Use this for initialization void Start() { litlle.SetActive(false); litlle_time = 0; little_f = false; nextTime = Time.time; Warning = GameObject.Find("Warning"); //script1 = Warning.GetComponent<Warning>(); Fire.SetActive(false); boss_sound.SetActive(false); //sound01 = GetComponent<AudioSource>(); scene_cnt = Quest_Easy.Set_Scene_Num(); }
// Use this for initialization void Start() { scene_cnt = Quest_Easy.Set_Scene_Num(); Debug.Log("scene_cnt == " + scene_cnt); if (scene_cnt == 1) { stage_sound1.SetActive(true); } if (scene_cnt == 2) { stage_sound2.SetActive(true); } if (scene_cnt == 3) { stage_sound3.SetActive(true); } }
void Start() { scene_cnt = Quest_Easy.Set_Scene_Num(); damage_hit = GameObject.Find("damage_hit"); script = damage_hit.GetComponent <Player_damage>(); warning = GameObject.Find("Warning"); script2 = warning.GetComponent <Warning>(); img = GetComponent <Image>(); img.color = Color.clear; img1 = GetComponent <Image>(); img1.color = Color.clear; img2 = GetComponent <Image>(); img2.color = Color.clear; img3 = GetComponent <Image>(); img3.color = Color.clear; }
// Use this for initialization void Start() { get_num = Quest_Easy.Set_Scene_Num(); skeletonPoint = GameObject.Find("skeletonPoint"); //script = skeletonPoint.GetComponent<Spawn_skel>(); skeletonNPoint = GameObject.Find("skeletonNPoint"); //script1 = skeletonNPoint.GetComponent<Spawn_skel1>(); skeletonSPoint = GameObject.Find("skeletonSPoint"); //script2 = skeletonSPoint.GetComponent<Spawn_skel2>(); Spawn_skel_gold = GameObject.Find("skeletonSPoint_gold"); //script_gold = Spawn_skel_gold.GetComponent<Spawn_skel_gold>(); time = 0; warning.SetActive(false); warning2.SetActive(false); Warning_Sound.SetActive(false); dragon_f = false; sound01 = GetComponent <AudioSource>(); MainCam.SetActive(true); SubCam.SetActive(false); dragon_preview = GameObject.Find("dragon_preview"); //script3 = dragon_preview.GetComponent<Dragon_preview_move>(); d_f = false; dragon_active_f = false; dragon_pre.SetActive(false); sound_off = false; stage_sound.SetActive(true); bless_hit.SetActive(false); warning_OK = false; }
// Use this for initialization void Start() { scene_cnt = Quest_Easy.Set_Scene_Num(); if (scene_cnt == 1) { interval = 2; } if (scene_cnt == 2) { interval = 2; } if (scene_cnt == 3) { interval = 2; } GameStart = GameObject.Find("GameStart"); script = GameStart.GetComponent <GameStartText_No_Endless>(); warning_gold = false; cnt = 0; InvokeRepeating("SpawnObj", 0.1f, interval); var2 = Random.Range(0, 3); }
// Use this for initialization void Start() { scene_cnt = Quest_Easy.Set_Scene_Num(); if (scene_cnt == 1) { interval = 3; skeleton_count = 5; } if (scene_cnt == 2) { interval = 1.5f; skeleton_count = 11; } if (scene_cnt == 3) { interval = 2; skeleton_count = 10; } GameStart = GameObject.Find("GameStart"); //script = GameStart.GetComponent<GameStartText>(); warning_f1 = false; cnt = 0; InvokeRepeating("SpawnObj", 0.1f, interval); }