Example #1
0
        private void Awake()
        {
            character = GetComponent <Character>();
            Logging.CheckIfCorrectMonoBehaviourInstantiation(character, this, "Character");

            healthComponent = GetComponent <HealthComponent>();
            Logging.CheckIfCorrectMonoBehaviourInstantiation(healthComponent, this, "Health Component");

            replayRunner = GetComponent <IntervalReplayRunner>();
            Logging.CheckIfCorrectMonoBehaviourInstantiation(replayRunner, this, "Replay Runner");

            aiPathfinder = GetComponent <AiPathfinder>();
            Logging.CheckIfCorrectMonoBehaviourInstantiation(aiPathfinder, this, "Ai Pathfinder");
        }
 public LookingForAssailant(AiPathfinder aiPathfinder, VisualizerBase lookingForAssailantVisualizer, Transform transform)
 {
     _aiPathfinder = aiPathfinder;
     _lookingForAssailantVisualizer = lookingForAssailantVisualizer;
     _transform = transform;
 }
Example #3
0
 public override void Move()
 {
     AiPathfinder.FindPath(this.Level.Player, this);
     CollisionHandler.AiCollide(this, this.Level.Player);
 }
Example #4
0
 public OutOfThingsToDo(AiPathfinder aiPathfinder)
 {
     _aiPathfinder = aiPathfinder;
 }
 public ReplicatingActions(AiPathfinder aiPathfinder, IntervalReplayRunner replayRunner)
 {
     _aiPathfinder = aiPathfinder;
     _replayRunner = replayRunner;
 }
Example #6
0
 public WalkingAround(AiPathfinder aiPathfinder)
 {
     _aiPathfinder = aiPathfinder;
 }
 public ExternalControl(AiPathfinder aiPathfinder)
 {
     _aiPathfinder = aiPathfinder;
 }