Exemplo n.º 1
0
 void Start()
 {
     currentHealth = maxHealth;
     healthbar1.setMaxHealth(maxHealth);
     myAnim   = GetComponent <Animator>();
     canStart = false;
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     Health      = GlobalVariables.Health;
     rigidBody2D = GetComponent <Rigidbody2D>();
     healthBar.setMaxHealth(Health);
     dashEffect.enableEmission = false;
 }
Exemplo n.º 3
0
 void Start()
 {
     character.GetComponent <Character>();
     rigidBody2D = GetComponent <Rigidbody2D>();
     Beam.GetComponent <Renderer>().enabled      = false;
     Beam.GetComponent <BoxCollider2D>().enabled = false;
     healthBar.setMaxHealth(Health);
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     rigidBody2D = GetComponent <Rigidbody2D>();
     character.GetComponent <Character>();
     healthBar.setMaxHealth(Health);
 }
Exemplo n.º 5
0
 void Start()
 {
     currentHealth = maxHealth;
     healthBar.setMaxHealth(maxHealth);
 }
Exemplo n.º 6
0
 void Start()
 {
     audio.time = GlobalVariables.timeInAudio;
     healthBar.setMaxHealth(Health);
 }
Exemplo n.º 7
0
 void Start()
 {
     hb.setMaxHealth(maxHealth);
     currHealth = maxHealth;
 }
Exemplo n.º 8
0
 // Start is called before the first frame update
 void Start()
 {
     current_health = MaxHealth;
     healthbar.setMaxHealth((int)MaxHealth);
 }