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 HasThingsToDo(IntervalReplayRunner replayRunner)
 {
     _replayRunner = replayRunner;
 }
 public ReplicatingActions(AiPathfinder aiPathfinder, IntervalReplayRunner replayRunner)
 {
     _aiPathfinder = aiPathfinder;
     _replayRunner = replayRunner;
 }