private void Awake() { movement = GetComponent <Movement>(); vision = GetComponentInChildren <BlobVision>(); sentient = GetComponent <Sentient>(); Assert.IsNotNull(_availableStarts); // change this later; selectedMovementStrat = _availableStarts; canAssignPriorities = typeof(IAwareMover).IsAssignableFrom(selectedMovementStrat.GetType()); priorityEvaluator = sentient.GetComponent <IPrioritiesEvaluator>(); }
private void Awake() { evtStream = MessageBroker.Default.Receive <InteractableConsumedEvt>().Subscribe(evt => TryRemoveOthers(evt.Obj)); priorityEvaluator = GetComponent <IPrioritiesEvaluator>(); }