public void Execute(AIControllersRepository controllersRepository) { controllersRepository.GetComponent <AIGroundChargeAttack>().StartAttacking(Player); }
protected T GetComponent <T>() where T : Component { return(_controllersRepository.GetComponent <T>()); }
public void Execute(AIControllersRepository controllersRepository) { var movementController = controllersRepository.GetComponent <AIMovement>(); movementController.Move(Direction); }
public void Execute(AIControllersRepository controllersRepository) { var controller = controllersRepository.GetComponent <AIShootingBehaviour>(); controller.Shoot(Direction); }