예제 #1
0
 public void Execute(AIControllersRepository controllersRepository)
 {
     controllersRepository.GetComponent <AIGroundChargeAttack>().StartAttacking(Player);
 }
예제 #2
0
파일: AIBrain.cs 프로젝트: Melesar/gamejam
 protected T GetComponent <T>() where T : Component
 {
     return(_controllersRepository.GetComponent <T>());
 }
예제 #3
0
        public void Execute(AIControllersRepository controllersRepository)
        {
            var movementController = controllersRepository.GetComponent <AIMovement>();

            movementController.Move(Direction);
        }
예제 #4
0
        public void Execute(AIControllersRepository controllersRepository)
        {
            var controller = controllersRepository.GetComponent <AIShootingBehaviour>();

            controller.Shoot(Direction);
        }