// 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>();
 }
예제 #2
0
 // 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");
 }
예제 #3
0
 // 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>();
 }
예제 #4
0
 private void Start()
 {
     _RigidBody = transform.parent.GetComponent <Rigidbody>();
     //_Transform = GetComponent<Transform>();
     _GroundChecker = GroundChecker.GetComponent <GroundCheckScript>();
 }
예제 #5
0
 void Start()
 {
     groundChecker = player.GetComponent <GroundCheckScript>();
     anim          = player.GetComponent <Animator>();
 }