public void Attack() { PlayerCombat playerCombat = playerManager.player.GetComponent <PlayerCombat>(); if (playerCombat != null && InArea) { playerCombat.CAttack(myStats); } }