private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { attackablePlayer = other.gameObject.GetComponent <LivingPlayer>(); isAttacking = true; Debug.Log("Found player!"); } }
void Start() { playerStats = new LivingPlayer( startingHealth, startingAttackDMG, startingDefense, KeyCode.A, KeyCode.D, KeyCode.S ); }