protected void Awake() { wanderWalkController = FindObjectOfType <WanderWalkController>(); playerController = FindObjectOfType <PlayerController>(); playerCollider = playerController.GetComponent <BoxCollider2D>(); playerBounds = playerController.GetComponent <Collider2D>().bounds.size.y; }
protected void Awake() { wanderWalkController = GetComponent <WanderWalkController>(); hurtPlayerOnContact = GetComponent <HurtPlayerOnContact>(); animator = GetComponent <Animator>(); audioManager = FindObjectOfType <AudioManager>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); enemyHealthBar = GetComponent <EnemyHealthBar>(); deathCollider.enabled = false; }
protected void Awake() { wanderWalkController = GetComponent <WanderWalkController>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); hurtPlayerOnContact = GetComponentInChildren <HurtPlayerOnContact>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); floorDetector = FindObjectOfType <FloorDetector>(); healthBarCanvas = GetComponentInChildren <Canvas>(); animator = GetComponent <Animator>(); myCollider = GetComponent <Collider2D>(); audioManager = FindObjectOfType <AudioManager>(); }
protected void Awake() { enemyHealthBar = GetComponent <EnemyHealthBar>(); playerController = GetComponent <PlayerController>(); animator = GetComponent <Animator>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); audioManager = FindObjectOfType <AudioManager>(); floorDetector = FindObjectOfType <FloorDetector>(); wanderWalkController = GetComponent <WanderWalkController>(); hurtPlayerOnContact = GetComponent <HurtPlayerOnContact>(); }
protected void Awake() { enemyHealthManager = GetComponent <EnemyHealthManager>(); spriteRenderer = GetComponent <SpriteRenderer>(); bl = blood.GetComponent <ParticleSystem>(); enemyYBounds = GetComponent <Collider2D>().bounds.size.y; audioManager = FindObjectOfType <AudioManager>(); attackMovement = FindObjectOfType <AttackMovement>(); wanderWalkController = FindObjectOfType <WanderWalkController>(); hurtPlayerOnContact = FindObjectOfType <HurtPlayerOnContact>(); player = FindObjectOfType <PlayerController>(); startShader = spriteRenderer.material.shader; }
protected void Awake() { laserArray = new GameObject[5]; playOnce = new bool[5]; wanderWalkController = GetComponent <WanderWalkController>(); hurtPlayerOnContact = GetComponent <HurtPlayerOnContact>(); animator = GetComponent <Animator>(); playerController = FindObjectOfType <PlayerController>(); laserController = FindObjectOfType <LaserController>(); audioManager = FindObjectOfType <AudioManager>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); direction = -1; }
protected void Awake() { wanderWalkController = GetComponent <WanderWalkController>(); hurtPlayerOnContact = GetComponent <HurtPlayerOnContact>(); animator = GetComponent <Animator>(); player = FindObjectOfType <PlayerController>(); audioManager = FindObjectOfType <AudioManager>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); sprite = GetComponent <SpriteRenderer>(); myCollider = GetComponent <Collider2D>(); mybody = GetComponent <Rigidbody2D>(); playerYBounds = player.GetComponent <Collider2D>().bounds.size.y * 0.3f; playerYPos = player.transform.position.y; }
protected void Awake() { wanderWalkController = GetComponent <WanderWalkController>(); hurtEnemyOnContact = GetComponent <HurtEnemyOnContact>(); hurtPlayerOnContact = GetComponentInChildren <HurtPlayerOnContact>(); enemyHealthManager = GetComponent <EnemyHealthManager>(); floorDetector = FindObjectOfType <FloorDetector>(); animator = GetComponent <Animator>(); myCollider = GetComponent <Collider2D>(); playerController = FindObjectOfType <PlayerController>(); myBody = GetComponent <Rigidbody2D>(); trollYBounds = GetComponent <Collider2D>().bounds.size.y; audioManager = FindObjectOfType <AudioManager>(); enemyHealthBar = GetComponent <EnemyHealthBar>(); deathCollider.enabled = false; }