Exemple #1
0
 // Use this for initialization
 void Start()
 {
     laser          = visionPoint.GetComponent <LineRenderer>();
     myWeaponScript = gameObject.GetComponent <WeaponScript>();
     myNavScript    = gameObject.GetComponent <EnemyNavScript>();
     ESUI           = EnemySpottedText.GetComponent <EnemySpottedUIScript>();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     currentHP         = HPMax;
     hpBarScript       = healthBar.GetComponent <HPBarScript>();
     myNavScript       = gameObject.GetComponent <EnemyNavScript>();
     hpBarScript.HPMax = HPMax;
     refreshUI();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     myWeaponScript = gameObject.GetComponent <WeaponScript>();
     myNavScript    = gameObject.GetComponent <EnemyNavScript>();
 }