void Start() { gruntAI = transform.parent.GetComponent <EnemyAI_Grunt>(); playerHP = GameObject.Find("PlayerCharacter").GetComponent <PlayerHealth>(); damage = gruntAI.damage; knockback = gruntAI.knockback; }
// Unity Functions // private void Awake() { rb = GetComponent <Rigidbody2D>(); boxCollider = GetComponent <BoxCollider2D>(); enemyScript = GetComponent <EnemyAI_Grunt>(); _audioSource = GetComponent <AudioSource>(); currentHealth = maxHealth; }
void Start() { gruntAI = transform.parent.GetComponent <EnemyAI_Grunt>(); }