コード例 #1
0
ファイル: IA_Patrol.cs プロジェクト: GustavoHerreraDa/IA_TP_1
 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>();
 }