コード例 #1
0
    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>();
    }
コード例 #2
0
 private void Awake()
 {
     evtStream         = MessageBroker.Default.Receive <InteractableConsumedEvt>().Subscribe(evt => TryRemoveOthers(evt.Obj));
     priorityEvaluator = GetComponent <IPrioritiesEvaluator>();
 }