Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     speed = 2f;
     shake = GameObject.FindGameObjectWithTag("CameraShake").GetComponent <CamShake>();
     healthSystem.SetMaxHealth(50);
     inicial = transform.position;
     health.SetMaxHealth(healthSystem.GetMaxHealth());
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     speed     = 2f;
     shootRate = 2;
     shake     = GameObject.FindGameObjectWithTag("CameraShake").GetComponent <CamShake>();
     healthSystem.SetMaxHealth(50);
     health.SetMaxHealth(healthSystem.GetMaxHealth());
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     speed = 3f;
     posLr = transform.position;
     healthSystem.SetMaxHealth(20);
     healths.SetMaxHealth(20);
     if (vertical)
     {
         nextPos = new Vector2(transform.position.x, transform.position.y + limitY);
     }
     else
     {
         nextPos = new Vector2(transform.position.x + limitX, transform.position.y);
     }
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     currentHealth = maxHealth;
     healthBar.SetMaxHealth(maxHealth);
 }