// Use this for initialization void Start() { Bonus = 0; litlle.SetActive(false); litlle_time = 0; little_f = false; dragon_f = false; nextTime = Time.time; Warning = GameObject.Find("Warning"); script1 = Warning.GetComponent <Warning3>(); Fire.SetActive(false); boss_sound.SetActive(false); sound01 = GetComponent <AudioSource>(); BossObj = GameObject.Find("d_016"); //num = Random.Range(1, 4); boss_sound_play = false; //stage_fade.transform.position = new Vector3(80,2.3f,0); get_num = GameStartText.Set_num(); }
// Use this for initialization void Start() { dragon_pre_Red.SetActive(false); dragon_pre_Green.SetActive(false); dragon_pre_Blue.SetActive(false); dragon_Red.SetActive(false); dragon_Green.SetActive(false); dragon_Blue.SetActive(false); get_num = GameStartText.Set_num(); if (get_num == 0) { dragon_pre_Red.SetActive(true); dragon_Red.SetActive(true); //dragon_pre_Green.SetActive(false); //dragon_pre_Blue.SetActive(false); } if (get_num == 1) { //dragon_pre_Red.SetActive(false); dragon_pre_Green.SetActive(true); dragon_Green.SetActive(true); //dragon_pre_Blue.SetActive(false); } if (get_num == 2) { //dragon_pre_Red.SetActive(false); //dragon_pre_Green.SetActive(false); dragon_pre_Blue.SetActive(true); dragon_Blue.SetActive(true); } time = 0; dragon_preview_f = false; Warning = GameObject.Find("Warning"); script1 = Warning.GetComponent <Warning3>(); }