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