예제 #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;
 }
 // Use this for initialization
 void Start()
 {
     bigBossHealth = GetComponentInParent <BigBossHealth> ();
     health        = bigBossHealth.health;
     org           = transform.localScale.x;
 }