Exemplo n.º 1
0
    private void Awake()
    {
        dorgAI = GetComponent <RobotDogAI>();

        GameProgress.LogObjectivesPickedUp();
        // EventBus.Subscribe<ObjectiveItemPickedUpEvent>(OnObjectiveItemHasBeenPickedUpEvent);
    }
Exemplo n.º 2
0
 private void Awake()
 {
     agent      = GetComponent <NavMeshAgent>();
     dorgAI     = GetComponent <RobotDogAI>();
     dorgSensor = GetComponent <RobotDogSensor>();
     animator   = GetComponentInChildren <PoochAnimator>();
     EventBus.Subscribe <UntouchedObjectiveItemDetectedEvent>(OnUntouchedObjectiveItemDetectedEvent);
 }
Exemplo n.º 3
0
    private void Awake()
    {
        dogAI = GetComponent <RobotDogAI>();

        EventBus.Subscribe <EnterHomeEvent>(OnEnterHomeEvent);
        EventBus.Subscribe <EnterCityEvent>(OnEnterCityEvent);
        EventBus.Subscribe <ExitHomeEvent>(OnExitHomeEvent);
        EventBus.Subscribe <ExitCityEvent>(OnExitCityEvent);
    }