// Start is called before the first frame update void Start() { Player = GameObject.FindWithTag("Player"); rigid = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); GroundCheckScript = GroundCheckObj.GetComponent <GroundCheckScript>(); enemy_boss_controller = this.gameObject.GetComponent <EnemyBossSimilarPlayerControllerScript>(); InitSpeed = speed; player_move = Player.GetComponent <PlayerMoveScript>(); }
// 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"); }
// Start is called before the first frame update void Start() { rigid = this.gameObject.GetComponent <Rigidbody2D>(); anim = this.gameObject.GetComponent <Animator>(); ground_check_script = GroudCheck.GetComponent <GroundCheckScript>(); game_controller_script = GameObject.FindWithTag("GameController").GetComponent <GameControllerScript>(); background_camera_move_script = game_controller_script.BackGroundCamera.GetComponent <BackgroundCameraMovement>(); speedInit = speed; player_controller_script = this.gameObject.GetComponent <PlayerControllerScript>(); player_status = this.gameObject.GetComponent <PlayerStatus>(); box_collider2d = this.gameObject.GetComponent <BoxCollider2D>(); }
private void Start() { _RigidBody = transform.parent.GetComponent <Rigidbody>(); //_Transform = GetComponent<Transform>(); _GroundChecker = GroundChecker.GetComponent <GroundCheckScript>(); }
void Start() { groundChecker = player.GetComponent <GroundCheckScript>(); anim = player.GetComponent <Animator>(); }