Example #1
0
        void Start()
        {
            myMemory = gameObject.AddComponent <AIMemory>();
            myMemory.Set(BasicMemory.LastKnownPlayerPosition, 3f, "Child Cell");

            parentMemory = gameObject.transform.parent.gameObject.AddComponent <AIMemory>();

            StartCoroutine(MemoryRoutine());

            AIExecutor.Exec(gameObject, aiTreeAsset, new Dictionary <string, object>()
            {
                { "Foo", "This is foo" }
            });
        }
Example #2
0
 public TreeArguments(Dictionary <string, object> arguments, AIMemory aiMemory)
 {
     this.arguments = arguments;
     this.aiMemory  = aiMemory;
 }