// Start is called before the first frame update void Start() { pain = GetComponent <AudioSource>(); canvasInfected.SetActive(false); currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); }
void Start() { if (!SelfPV.IsMine) { return; } currentHealth = maxHealth; hp.SetMaxHealth(maxHealth); }
//public AudioSource attack; private void Start() { anim = GetComponent <Animator>(); currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); dead = GetComponent <AudioSource>(); portal.SetActive(false); // attack = GetComponent<AudioSource>(); }
void Start() { animator = GetComponent <Animator>(); currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); dead = GetComponent <AudioSource>(); ennemy = GetComponent <EnnemyMovement>(); portal.SetActive(false); //animator.SetBool("isWalking", true); }
// Start is called before the first frame update void Start() { playcont = GetComponent <PlayerController>(); anim = GetComponent <Animator>(); currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); rb = GetComponent <Rigidbody2D>(); lastGroundPos = groundCheck.position.y - fallDeath; anim.SetBool("isDead", false); }
//===================================================================================== void Start() { //Initialize values for variables maxHealth = 100; bulletDelay = 1.2f; Wallet = 100; currentDamage = 10; bought = false; rapidfire = false; currentHealth = maxHealth; //Initialize values in scipts healthbar.SetMaxHealth(maxHealth); coinCounter.setCoinCount(Wallet); enemyController.setDamage(currentDamage); damageUI.setDamage(currentDamage); shooting.setDelay(bulletDelay); coinsUI.setCoins(Wallet); shootingUICost.setcost(increase_Bullet_cost); damageUICost.setcost(increase_Damage_cost); }
void Start() { healthba.SetMaxHealth(health); gameover.SetActive(false); }
void Start() { currenthealth = maxhealth; healthbar.SetMaxHealth(maxhealth); }
// Start is called before the first frame update void Start() { currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); }
void Start() { healthbar.SetMaxHealth(health); }
// Start is called before the first frame update void Start() { currentHealth = maxHealth; //set current health value as max health value hpb.SetMaxHealth(maxHealth); //set the slider bar in the ui for the healthbar }