// Use this for initialization void Start() { shot = GameObject.FindWithTag("Player"); // baby = GameObject.Find("bay"); shot_part = shot.GetComponent<shot_part8>(); audio = GameObject.Find("Sound_boss").GetComponent<AudioSource>(); }
// Use this for initialization void Start() { //取得 shot_part = GameObject.Find ("shot_rota").GetComponent<shot_part8>(); gread = shot_part.gread; boss_cs = GameObject.Find ("baby").GetComponent<Boss>(); boss_hp = boss_cs.HP; heat_max = shot_part.heat_max; heat = shot_part.heat; }