Exemplo n.º 1
0
 public NormalState(AIInput owner, float wanderStrength, CollisionNotifier collisionNotifier)
 {
     this.owner             = owner;
     this.wanderStrength    = wanderStrength;
     this.collisionNotifier = collisionNotifier;
     coinMask          = LayerMask.GetMask("Coin");
     collisionDelegate = new CollisionNotifier.OnCollision(OnCollision);
 }
Exemplo n.º 2
0
 public AggressiveState(AIInput owner, float wanderStrength, float guidePointDistance, float time, CollisionNotifier collisionNotifier)
 {
     this.owner              = owner;
     this.wanderStrength     = wanderStrength;
     this.guidePointDistance = guidePointDistance;
     maxTime = time;
     this.collisionNotifier = collisionNotifier;
     collisionDelegate      = new CollisionNotifier.OnCollision(OnCollision);
 }