Пример #1
0
 private void Awake()
 {
     fighter = GameObject.FindWithTag("Player").GetComponent <Fighter>();
 }
Пример #2
0
        private void Pickup(Fighter fighter)
        {
            fighter.EquipWeapon(weapon);

            StartCoroutine(HideForSeconds(respawnTime));
        }
Пример #3
0
 private void Awake()
 {
     healthText = GetComponent <Text>();
     player     = GameObject.FindWithTag("Player").GetComponent <Fighter>();
 }
Пример #4
0
 private void Pickup(Fighter fighter)
 {
     fighter.EquipWeapon(_weaponConfig);
     StartCoroutine(RespawnPickup(respawnTime));
 }
 private void Pickup(Fighter fighter)
 {
     fighter.EquipWeapon(weapon);
     StartCoroutine(HideObject(timeOfHiding));
 }
Пример #6
0
 private void Awake()
 {
     playerFighter = GameObject.FindWithTag("Player").GetComponent <Fighter>();
     healthValue   = GetComponent <TextMeshProUGUI>();
 }
Пример #7
0
 private void Awake()
 {
     target      = GameObject.FindWithTag("Player").GetComponent <Fighter>();
     textDisplay = GetComponent <Text>();
 }