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; }
public override void Move() { AiPathfinder.FindPath(this.Level.Player, this); CollisionHandler.AiCollide(this, this.Level.Player); }
public OutOfThingsToDo(AiPathfinder aiPathfinder) { _aiPathfinder = aiPathfinder; }
public ReplicatingActions(AiPathfinder aiPathfinder, IntervalReplayRunner replayRunner) { _aiPathfinder = aiPathfinder; _replayRunner = replayRunner; }
public WalkingAround(AiPathfinder aiPathfinder) { _aiPathfinder = aiPathfinder; }
public ExternalControl(AiPathfinder aiPathfinder) { _aiPathfinder = aiPathfinder; }