protected override void Awake() { currentHealth = maximumHealth; spriteRender = GetComponent <SpriteRenderer> (); anim = GetComponent <Animator> (); guardFire = GetComponent <Guard3BulletFiring> (); guardMovement = GetComponent <Guard3Movement> (); guardCollider = GetComponent <BoxCollider2D>(); playerScore = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreManager> (); }
void Awake() { guardMovement = GetComponent <Guard3Movement> (); anim = GetComponent <Animator> (); playerMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement> (); }