Esempio n. 1
0
 // Start is called before the first frame update
 private void Start()
 {
     anim  = GetComponent <Animator>();
     rigid = GetComponent <Rigidbody2D>();
     PlayerControllerScript = GameObject.FindWithTag("Player").GetComponent <PlayerControllerScript>();
     enemy_boss_move        = this.gameObject.GetComponent <EnemyBossSimilarPlayerMoveScript>();
     enemy_boss_controller  = this.gameObject.GetComponent <EnemyBossSimilarPlayerControllerScript>();
     player_status          = PlayerControllerScript.GetComponent <PlayerStatus>();
 }
 // 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>();
 }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        enemy_boss_similar_player_controller = EnemyBossSimilarPlayerControllerScript.enemy_boss_controller;
        chase_to_event_boss_camera           = EventCamera.GetComponent <ChaseToBossEventCamera>();

        playerController = GameObject.FindWithTag("Player").GetComponent <PlayerControllerScript>();
        main_bgm_script  = GetComponent <MainBGMScript>();
        main_bgm_script.AudioChangeAndPlay(AudioMode.Init);
        playerController.PermitAll = true;
        enemy_boss_similar_player_controller.PermitAll = false;
        MainCamera = GameObject.FindWithTag("MainCamera");
        Permit     = false;
    }
 // Start is called before the first frame update
 void Start()
 {
     boxCollider    = this.gameObject.GetComponent <BoxCollider2D>();
     ColliderOffSet = boxCollider.offset;
     ColliderSize   = boxCollider.size;
     if (AttackToPlayerOrEnemy.Enemy == attackToPlayerOrEnemy)
     {
         PlayerControllerScript = GameObject.FindWithTag("Player").GetComponent <PlayerControllerScript>();
         this.gameObject.SetActive(false);
         player_status = GameObject.FindWithTag("Player").GetComponent <PlayerStatus>();
     }
     else if (AttackToPlayerOrEnemy.Player == attackToPlayerOrEnemy)
     {
         EnemyBossSimilarPlayerControllerScript = EnemyBossSimilarPlayerControllerScript.enemy_boss_controller;
         boss_status_player_similar             = EnemyBossSimilarPlayerControllerScript.enemy_boss_controller.gameObject.GetComponent <BossStatusSimilarPlayer>();
     }
 }
 private void Awake()
 {
     enemy_boss_controller = this;
 }