public override void Interact() { base.Interact(); CharacterCombat playerCombat = player.GetComponent <CharacterCombat>(); if (playerCombat != null) { playerCombat.Attack(myStats); } }
private void Start() { agent = GetComponent <NavMeshAgent>(); target = PlayerManager.instance.player.transform; combat = GetComponent <CharacterCombat>(); }
public PlayerController(Player player, CharacterCombat characterCombat) { this.player = player; }