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