Пример #1
0
 protected void OnEnable()
 {
     if (contextProvider == null)
     {
         contextProvider = gameObject.GetComponent <TaskNetworkComponent>().contextProvider;
     }
 }
Пример #2
0
        public UtilityAIClient(Guid aiId, IContextProvider contextProvider)
        {
            //this.ai = ai;
            this.contextProvider = contextProvider as AIContextProvider;

            this.intervalMin   = this.intervalMax = 1f;
            this.startDelayMin = this.startDelayMax = 0f;
        }
Пример #3
0
        public UtilityAIClient(UtilityAI ai, IContextProvider contextProvider)
        {
            this.ai = ai;
            this.contextProvider = contextProvider as AIContextProvider;

            this.intervalMin   = this.intervalMax = 1f;
            this.startDelayMin = this.startDelayMax = 0f;
            state = UtilityAIClientState.Stopped;
        }
        private void Awake()
        {
            taskNetwork     = GetComponent <TaskNetworkComponent>();
            contextProvider = GetComponent <AIContextProvider>();


            aiSight = GetComponent <AIPerceptionComponent>();


            aiSteer = GetComponent <EntityAISteering>();
        }
Пример #5
0
        public UtilityAIClient(UtilityAI ai, IContextProvider contextProvider, float intervalMin, float intervalMax, float startDelayMin, float startDelayMax)
        {
            this.ai = ai;
            this.contextProvider = contextProvider as AIContextProvider;

            this.intervalMin   = intervalMin;
            this.intervalMax   = intervalMax;
            this.startDelayMin = startDelayMin;
            this.startDelayMax = startDelayMax;
            state = UtilityAIClientState.Stopped;
        }