Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     laser          = visionPoint.GetComponent <LineRenderer>();
     myWeaponScript = gameObject.GetComponent <WeaponScript>();
     myNavScript    = gameObject.GetComponent <EnemyNavScript>();
     ESUI           = EnemySpottedText.GetComponent <EnemySpottedUIScript>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     GoToNextDestination();
     visionRange = gameObject.GetComponent <EnemyVisionScript>().visionRange;
     ESUI        = EnemySpottedText.GetComponent <EnemySpottedUIScript>();
 }