예제 #1
0
        public void Init(GameObject owner)
        {
            state = States.Stopped;

            Owner = owner;
            Memory.Init(this);
            Actions.Init(this);
            Sensors.Init(this);
            Goals.Init(this);

            executor = new Executor <L, V>(this);
            planner  = new Planner <L, V>(this);

            Logger = new AILogger(logLevel);

            planner.OnActionPlanFound     += OnActionPlanFound;
            planner.OnActionPlanNotFound  += OnActionPlanNotFound;
            executor.OnActionPlanComplete += OnActionPlanComplete;

            OnInit();
        }