Esempio n. 1
0
        protected override void init()
        {
            base.init();
            IAIControllerFactory controllerFactory = AIControllerFactory.getEntity();

            aiCharacterController = controllerFactory.getAICharacterController(this, new BrainFactory());
        }
Esempio n. 2
0
        // Use this for initialization
        protected override void init()
        {
            base.init();
            IAIControllerFactory controllerFactory = AIControllerFactory.getEntity();

            aiCharacterController = controllerFactory.getAICharacterController(this, new BrainFactory());
            //Initialize your attributes or other necessities below.
            aiCharacterController.switchBrain(((BrainFactory)aiCharacterController.Factory).getIdleBrain(this));
            doDamage        = false;
            trigger.enabled = true;
        }