Ejemplo n.º 1
0
 void Awake()
 {
     GameObject.FindGameObjectWithTag(Tags.bigBoss);
     bigBossHealth            = GameObject.FindGameObjectWithTag(Tags.bigBoss).GetComponent <BigBossHealth> ();
     anim                     = GetComponent <Animator> ();
     laserShotLine            = GetComponentInChildren <LineRenderer> ();
     laserShotLight           = laserShotLine.gameObject.GetComponent <Light>();
     col                      = GetComponent <SphereCollider> ();
     laserShotLine.enabled    = false;
     laserShotLight.intensity = 0f;
     scaledDamage             = maxDamage - minDamage;
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     bigBossHealth = GetComponentInParent <BigBossHealth> ();
     health        = bigBossHealth.health;
     org           = transform.localScale.x;
 }