private void Awake() { fighter = GameObject.FindWithTag("Player").GetComponent <Fighter>(); }
private void Pickup(Fighter fighter) { fighter.EquipWeapon(weapon); StartCoroutine(HideForSeconds(respawnTime)); }
private void Awake() { healthText = GetComponent <Text>(); player = GameObject.FindWithTag("Player").GetComponent <Fighter>(); }
private void Pickup(Fighter fighter) { fighter.EquipWeapon(_weaponConfig); StartCoroutine(RespawnPickup(respawnTime)); }
private void Pickup(Fighter fighter) { fighter.EquipWeapon(weapon); StartCoroutine(HideObject(timeOfHiding)); }
private void Awake() { playerFighter = GameObject.FindWithTag("Player").GetComponent <Fighter>(); healthValue = GetComponent <TextMeshProUGUI>(); }
private void Awake() { target = GameObject.FindWithTag("Player").GetComponent <Fighter>(); textDisplay = GetComponent <Text>(); }