// Start is called before the first frame update private void Start() { anim = GetComponent <Animator>(); rigid = GetComponent <Rigidbody2D>(); enemy_boss_move = this.gameObject.GetComponent <GunBossMoveScript>(); enemy_boss_controller = this.gameObject.GetComponent <GunBossControllerScript>(); }
// Start is called before the first frame update void Start() { SpeedInit = Speed; anim = GetComponent <Animator>(); rigid = GetComponent <Rigidbody2D>(); ground_check_script = GroundCheck.GetComponent <GroundCheckScript>(); gun_boss_status_script = GetComponent <GunBossStatusScript>(); gun_boss_controller = GetComponent <GunBossControllerScript>(); Player = GameObject.FindWithTag("Player"); }