public IA_Patrol(EnemyController enemy, Rigidbody rigidbody, WalkToPoints walktoPoints, float s = 5) { this.enemy = enemy; this.rigidbody = rigidbody; this.walktoPoints = walktoPoints; speed = s; }
private void Awake() { myRigidbody = GetComponent <Rigidbody>(); walkToPoints = GetComponent <WalkToPoints>(); lineOfSight = GetComponent <LineOfSight>(); }