Пример #1
0
 public abstract float GetDistanceTolerance(Agent agent, Entity entity, Mapping mapping, float defaultTolerance);
Пример #2
0
 public abstract Vector3 GetRotateTowardsLocation(Agent agent, Entity entity, Mapping mapping);
Пример #3
0
 public abstract Vector3 GetInteractionSpot(Agent agent, Entity entity, Mapping mapping, bool forGoTo, bool forInventory);
Пример #4
0
 public abstract bool CanBeInteractedWith(Agent agent, Entity entity, Mapping mapping);
Пример #5
0
 public override void DestroySelf(Agent agent, float delay = 0f)
 {
     Destroy(gameObject, delay);
 }
Пример #6
0
        private IEnumerator AddAttendeeCoroutine(Agent agent, float delay)
        {
            yield return(new WaitForSeconds(delay));

            AddAttendee(agent);
        }
Пример #7
0
 public void AddAttendee(Agent agent, float delay)
 {
     StartCoroutine(AddAttendeeCoroutine(agent, delay));
 }
Пример #8
0
 public void Setup(Agent agent)
 {
     this.agent      = agent;
     behaviorContext = new Context();
 }