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); }
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); }