Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Time.timeScale = 1;
     //Reference rigid component on object
     rb               = GetComponent <Rigidbody>();
     curHealth        = health;
     hpSlide.maxValue = health;
     hpSlide.value    = curHealth;
     enemy            = GameObject.FindGameObjectWithTag("Boss").GetComponent <Boss.Random_Nav_Boss>();
 }
Ejemplo n.º 2
0
        private void Start()
        {
            enemy = GetComponent <Random_Nav_Boss>();
            rb    = GetComponent <Rigidbody>();

            curHealth             = health;
            enemy.bossHp.maxValue = health;
            enemy.bossHp.value    = curHealth;

            open = GameObject.FindGameObjectWithTag("Wall").GetComponent <OpenWall>();
            game = GameObject.FindGameObjectWithTag("Manager").GetComponent <EndGame>();
        }