Пример #1
0
 public IA_Patrol(EnemyController enemy, Rigidbody rigidbody, WalkToPoints walktoPoints, float s = 5)
 {
     this.enemy        = enemy;
     this.rigidbody    = rigidbody;
     this.walktoPoints = walktoPoints;
     speed             = s;
 }
Пример #2
0
 private void Awake()
 {
     myRigidbody  = GetComponent <Rigidbody>();
     walkToPoints = GetComponent <WalkToPoints>();
     lineOfSight  = GetComponent <LineOfSight>();
 }