private void Awake() { dorgAI = GetComponent <RobotDogAI>(); GameProgress.LogObjectivesPickedUp(); // EventBus.Subscribe<ObjectiveItemPickedUpEvent>(OnObjectiveItemHasBeenPickedUpEvent); }
private void Awake() { agent = GetComponent <NavMeshAgent>(); dorgAI = GetComponent <RobotDogAI>(); dorgSensor = GetComponent <RobotDogSensor>(); animator = GetComponentInChildren <PoochAnimator>(); EventBus.Subscribe <UntouchedObjectiveItemDetectedEvent>(OnUntouchedObjectiveItemDetectedEvent); }
private void Awake() { dogAI = GetComponent <RobotDogAI>(); EventBus.Subscribe <EnterHomeEvent>(OnEnterHomeEvent); EventBus.Subscribe <EnterCityEvent>(OnEnterCityEvent); EventBus.Subscribe <ExitHomeEvent>(OnExitHomeEvent); EventBus.Subscribe <ExitCityEvent>(OnExitCityEvent); }