// Use this for initialization
    void Start()
    {
        cloud          = FindObjectOfType <MegaCloud>();
        startTransform = transform;

        patrolScript = GetComponentInChildren <BossPatrolMan>();

        playerIn = FindObjectOfType <NewPlayerInBossRoom>();

        anim = GetComponentInChildren <Animator>();

        playerInRange = GetComponent <CheckPlayerInRange>();

        bossHealth = GetComponentInChildren <EnemyHealthMid>();


        randoInt = Random.Range(min, max);
        randoInt++;

        if (startFight == true)
        {
            patrolScript.canWalk = true;
        }
        StartCoroutine("ShotDelay");
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     range  = GetComponent <CheckPlayerInRange>();
     player = FindObjectOfType <HealthManager>();
     lava   = FindObjectOfType <firebossLava>();
     anim   = gameObject.GetComponent <Animator>();
 }
 // Use this for initialization
 void Start()
 {
     startTarget         = gameObject.transform;
     playerInRangeScript = GetComponent <CheckPlayerInRange>();
     player   = FindObjectOfType <Player>();
     mySprite = GetComponent <SpriteRenderer>();
     // transform.localScale = new Vector3(-1, 1, 1);
 }
 // Use this for initialization
 void Start()
 {
     health            = GetComponent <EnemyHealthMid>();
     currentBossHealth = GetComponent <EnemyHealthMid>().enemyHealth;
     updatedBossHealth = currentBossHealth;
     range             = FindObjectOfType <CheckPlayerInRange>();
     playerlife        = FindObjectOfType <HealthManager>();
 }
 // Use this for initialization
 void Start()
 {
     anim              = gameObject.GetComponent <Animator>();
     inRangeScript     = GetComponent <CheckPlayerInRange>();
     enemyPatrolScript = GetComponent <EnemyPatrol>();
     moveSpeedStart    = enemyPatrolScript.moveSpeed;
     HealthScript      = GetComponent <EnemyHealthMid>();
     enemyHealthStart  = HealthScript.enemyHealth;
     enemyHealthBuff   = enemyHealthStart + enemyHealthStart;
 }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     bossFight         = FindObjectOfType <fireBossFight>();
     health            = GetComponent <EnemyHealthMid>();
     currentBossHealth = GetComponent <EnemyHealthMid>().enemyHealth;
     updatedBossHealth = currentBossHealth;
     range             = FindObjectOfType <CheckPlayerInRange>();
     playerlife        = FindObjectOfType <HealthManager>();
     anim = gameObject.GetComponent <Animator>();
 }
Beispiel #7
0
 // Use this for initialization
 void Start()
 {
     rangeCheck = GetComponent <CheckPlayerInRange>();
     rangeCheck.playerInRange = false;
     camer = FindObjectOfType <CameraManager>();
 }
 // Use this for initialization
 void Start()
 {
     playerRange = GetComponent <CheckPlayerInRange>();
 }
 // Use this for initialization
 void Start()
 {
     player      = FindObjectOfType <Player>();
     rangeCheck  = FindObjectOfType <CheckPlayerInRange>();
     shotCounter = waitBetweenShots;
 }
 // Use this for initialization
 void Start()
 {
     anim           = gameObject.GetComponent <Animator>();
     playerRange    = GetComponent <CheckPlayerInRange>();
     playPersonLoca = FindObjectOfType <Player>();
 }
Beispiel #11
0
 // Use this for initialization
 void Start()
 {
     startTarget         = gameObject.transform;
     playerInRangeScript = GetComponent <CheckPlayerInRange>();
     // transform.localScale = new Vector3(-1, 1, 1);
 }